...
This class represents triangle mesh objects. It allows you to specify or retrieve the geometry data, as well as assign per-triangle materials. The method GetShapeType
inherited from MaxwellMayaShape
returns ShapeType_Mesh
. You can create meshes by calling the CreateMesh
method of the MaxwellMayaAPI
class.
Methods
bool
SetPosition(unsigned int positionIndex, unsigned int stepIndex, const MPoint& position
...
)
Description
Sets the position for a vertex.
Arguments
positionIndex
Must be between 0 and GetNumPositions()
- 1. The number of vertices is specified when the mesh is created and cannot be changed afterwards.
stepIndex
Relevant when motion blur is enabled. Specify 0 for the initial position or 1 for the final position (Maxwell currently supports only two deformation steps).
Sets the position for a vertex. The positionIndex
argument must be between 0 and GetNumPositions()
- 1. The number of vertices is specified when the mesh is created and cannot be changed afterwards. The stepIndex
agument argument is relevant when motion blur is enabled. Specify 0 for the initial position or 1 for the final position (Maxwell currently supports only two deformation steps). The number of deformation steps is defined when the mesh is created. In Python, the position
argument can be any object which has x
, y
and z
floating point members.
...