...
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
Return values
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
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.
Anchor
bool SetPositions(unsigned int stepIndex, const float* positions);
bool SetPositions(unsigned int stepIndex, const double* positions);
bool SetPositions(unsigned int stepIndex, const MFloatPointArray& positions);
bool SetPositions(unsigned int stepIndex, const MPointArray& positions);
...
Adds a geometry modifier extension to the object. Geometry modifiers are Maxwell plug-ins which get called by the engine before rendering to perform modifications on the mesh.
unsigned int GetNumPositions() const;
Returns the number of positions for the mesh. This value is specified when the mesh is created and cannot be changed afterwards.
...