TextureMapping
Canonical path: NemAll_Python_BasisElements.TextureMapping
Texture mapping property class
Methods:
-
FromSurfaceMapping–Get the properties from the surface mapping object
-
__eq__–Compare operator
-
__init__–Overloaded function. See individual overloads.
-
__repr__–Convert to string
Attributes:
-
MappingAngle(float) –Get mapping angle
-
MappingType(eMappingType) –Get mapping type
-
PhongAngle(float) –Get angle for Phong light model
-
ReferenceEdge(int) –Get reference edge
-
ReferenceFace(int) –Get reference face
-
UVCoordinates(list[float]) –Get UV texture mapping coordinates
-
UValueForIsoLines(int) –Get U count of isolines
-
VValueForIsoLines(int) –Get V count of isolines
-
XOffset(float) –Get X offset
-
XScale(float) –Get mapping X scale
-
YOffset(float) –Get Y offset
-
YScale(float) –Get mapping Y scale
FromSurfaceMapping
Get the properties from the surface mapping object
Parameters:
-
mapping(object) –Surface mapping
__eq__
__eq__(props: TextureMapping) -> bool
Compare operator
Parameters:
-
props(TextureMapping) –Properties to compare
Returns:
-
bool–Properties a equal: true/false
__init__
overloaded
Initialize
__init__(
mappingType: TextureMappingType,
mappingAngle: float,
scaleX: float,
scaleY: float,
offsetX: float,
offsetY: float,
phongAngle: float,
refFace: int,
refEdge: int,
)
Constructor
Parameters:
-
mappingType(TextureMappingType) –Mapping type
-
mappingAngle(float) –Mapping angle
-
scaleX(float) –Mapping scale in X-axis
-
scaleY(float) –Mapping scale in Y-axis
-
offsetX(float) –X offset
-
offsetY(float) –Y offset
-
phongAngle(float) –Angle for Phong light model
-
refFace(int) –Reference face
-
refEdge(int) –Reference edge
__init__(
mappingType: TextureMappingType,
mappingAngle: float,
scaleX: float,
scaleY: float,
offsetX: float,
offsetY: float,
phongAngle: float,
refFace: int,
refEdge: int,
uvCoords: VecDoubleList,
)
Constructor
Parameters:
-
mappingType(TextureMappingType) –Mapping type
-
mappingAngle(float) –Mapping angle
-
scaleX(float) –Mapping scale in X-axis
-
scaleY(float) –Mapping scale in Y-axis
-
offsetX(float) –X offset
-
offsetY(float) –Y offset
-
phongAngle(float) –Angle for Phong light model
-
refFace(int) –Reference face
-
refEdge(int) –Reference edge
-
uvCoords(VecDoubleList) –UV coordinates
__init__(uvCoords: VecDoubleList)
__init__(element: TextureMapping)