...
bool | SetPosition(unsigned int positionIndex, unsigned int stepIndex, const MPoint& position) |
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 | MaxwellMayaMesh class#SetPositions(unsigned int stepIndex, const MPointArray& positions) |
bool | SetNormal(unsigned int normalIndex, unsigned int stepIndex, const MVector& normal) |
bool | SetNormals(unsigned int stepIndex, const float* normals) |
bool | SetNormals(unsigned int stepIndex, const double* normals) |
bool | SetNormals(unsigned int stepIndex, const MFloatVectorArray& normals) |
bool | SetNormals(unsigned int stepIndex, const MVectorArray& normals) |
bool | SetTriangle(unsigned int triangleIndex, unsigned int posIdx0, unsigned int posIdx1, unsigned int posIdx2, unsigned int normIdx0, unsigned int normIdx1, unsigned int normIdx2) |
bool | SetTriangles(const unsigned int* positionIndices, const unsigned int* normalIndices) |
bool | SetTriangles(const MIntArray& positionIndices, const MIntArray& normalIndices) |
bool | CreateUVSets(unsigned int count) |
bool | SetTriangleUVs(unsigned int triangleIndex, unsigned int setIndex, double u0, double v0, double u1, double v1, double u2, double v2) |
bool | SetUVs(unsigned int setIndex, const float* uvs) |
bool | SetUVs(unsigned int setIndex, const double* uvs) |
bool | SetUVs(unsigned int setIndex, const MFloatArray& uvs) |
bool | SetUVs(unsigned int setIndex, const MDoubleArray& uvs) |
bool | SetTriangleMaterial(unsigned int triangleIndex, const MaxwellMayaMaterialconst MaxwellMayaMaterial* material) |
bool | MaxwellMayaMesh class#SetTrianglesMaterial(unsigned int numTriangles, const unsigned int* triangleIndices, const MaxwellMayaMaterial* material) |
bool | SetTrianglesMaterial(const MIntArray& triangleIndices, const MaxwellMayaMaterial* material) |
bool | AddGeometryModifier(const MaxwellMayaExtensionParamsconst MaxwellMayaExtensionParams* params) |
unsigned int | GetNumPositions() const |
unsigned int | GetNumNormals() const |
unsigned int | GetNumTriangles() const |
unsigned int | GetNumSteps() const |
unsigned int | GetNumUVSets() const |
bool | GetPosition(unsigned int positionIndex, unsigned int stepIndex, MPoint& position) const |
bool | GetPositions(unsigned int stepIndex, MPointArray& positions) const |
bool | GetNormal(unsigned int normalIndex, unsigned int stepIndex, MVector& normal) const |
bool | GetNormals(unsigned int stepIndex, MVectorArray& normals) const |
bool | GetTriangle(unsigned int triangleIndex, unsigned int& posIdx0, unsigned int& posIdx1, unsigned int& posIdx2, unsigned int& normIdx0, unsigned int& normIdx1, unsigned int& normIdx2) const |
bool | GetTriangles(MIntArray& positionIndices, MIntArray& normalIndices) const |
bool | GetTriangleUVs(unsigned int triangleIndex, unsigned int setIndex, double& u0, double& v0, double& u1, double& v1, double& u2, double& v2) const |
bool | GetUVs(unsigned int setIndex, MFloatArray& uvs) const |
MaxwellMayaMaterial* | GetTriangleMaterial(unsigned int triangleIndex) |
const MaxwellMayaMaterialconst MaxwellMayaMaterial* | GetTriangleMaterial(unsigned int triangleIndex) const |
...
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.
...
Set all the vertex positions in one call. The arrays must have exactly GetNumPositions()
elements. The meaning of the stepIndex argument is the same as in the SetPosition method. In Python, the positions argument can either be a flat list of floating point numbers, in which case it is interpreted as a sequence of x, y, z values (so there must be 3*GetNumPositions()
elements) or a list of objects which have x
, y
and z
floating point members (e.g OpenMaya.MVector
).
bool SetNormal(unsigned int normalIndex, unsigned int stepIndex, const MVector& normal)
Sets the normal at the given index. The normalIndex argument must be between 0 and GetNumNormals()
- 1. The number of normals is specified when the mesh is created and cannot be changed afterwards. The stepIndex argument has the same meaning as in the SetPosition
method. In Python, the normal argument can be any object which has x
, y
and z
floating point members.
...
Set all the normals in one call. The arrays must have exactly GetNumNormals()
elements. The meaning of stepIndex
is the same as in the SetPosition
method. In Python, the types accepted for the normals
argument are the same as in the SetPositions
method.
...