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):
    ...
ParameterTypeDescription
height_mapaspose.threed.render.TextureDataInput height map

__init__(self, name)

Initializes a new instance of the Mesh class.


def __init__(self, name):
    ...
ParameterTypeDescription
namestrName.

__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):
    ...
ParameterTypeDescription
height_mapaspose.threed.render.TextureDataInput height map
transformaspose.threed.utilities.Matrix4The 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):
    ...
ParameterTypeDescription
height_mapaspose.threed.render.TextureDataInput height map
tri_meshbool
transformaspose.threed.utilities.Matrix4The transform that applied on the control points

See Also