Mesh constructor
__init__(self)
Initializes a new instance of the Mesh
class.
def __init__(self):
...
__init__(self, height_map)
Construct a mesh using specified height map, if the height map’s pixel format contains multiple components, the first(usually the red) component will be used as the height value(z) The control point’s x and y components are normalized pixel coordinate.
def __init__(self, height_map):
...
Parameter | Type | Description |
---|---|---|
height_map | aspose.threed.render.TextureData | Input height map |
__init__(self, name)
Initializes a new instance of the Mesh
class.
def __init__(self, name):
...
Parameter | Type | Description |
---|---|---|
name | str | Name. |
__init__(self, height_map, transform)
Construct a mesh using specified height map, if the height map’s pixel format contains multiple components, the first(usually the red) component will be used as the height value(z) The control point’s x and y components are normalized pixel coordinate.
def __init__(self, height_map, transform):
...
Parameter | Type | Description |
---|---|---|
height_map | aspose.threed.render.TextureData | Input height map |
transform | aspose.threed.utilities.Matrix4 | The transform that applied on the control points |
__init__(self, height_map, tri_mesh, transform)
Construct a mesh using specified height map, if the height map’s pixel format contains multiple components, the first(usually the red) component will be used as the height value(z) The control point’s x and y components are normalized pixel coordinate.
def __init__(self, height_map, tri_mesh, transform):
...
Parameter | Type | Description |
---|---|---|
height_map | aspose.threed.render.TextureData | Input height map |
tri_mesh | bool | |
transform | aspose.threed.utilities.Matrix4 | The transform that applied on the control points |
See Also
- module
aspose.threed.entities
- class
Mesh