Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This class represents triangle mesh objects. It allows you to specify or retrieve the geometry data, as well as assign per-triangle materials. The inherited method GetShapeType inherited from MaxwellMayaShape returns ShapeType_Mesh. You can create meshes by calling the MaxwellMayaAPI::CreateMesh method of the MaxwellMayaAPI class.

Base class: MaxwellMayaShape.

Methods

boolSetPosition(unsigned int positionIndex, unsigned int stepIndex, const MPoint& position)
boolSetPositions(unsigned int stepIndex, const float* positions)
boolSetPositions(unsigned int stepIndex, const double* positions)
boolSetPositions(unsigned int stepIndex, const MFloatPointArray& positions)
boolMaxwellMayaMesh class#SetPositions(unsigned int stepIndex, const MPointArray& positions)
boolSetNormal(unsigned int normalIndex, unsigned int stepIndex, const MVector& normal)
boolSetNormals(unsigned int stepIndex, const float* normals)
boolSetNormals(unsigned int stepIndex, const double* normals)
boolSetNormals(unsigned int stepIndex, const MFloatVectorArray& normals)
boolSetNormals(unsigned int stepIndex, const MVectorArray& normals)
boolSetTriangle(unsigned int triangleIndex, unsigned int posIdx0, unsigned int posIdx1, unsigned int posIdx2, unsigned int normIdx0, unsigned int normIdx1, unsigned int normIdx2)
boolSetTriangles(const unsigned int* positionIndices, const unsigned int* normalIndices)
boolSetTriangles(const MIntArray& positionIndices, const MIntArray& normalIndices)
boolCreateUVSets(unsigned int count)
boolSetTriangleUVs(unsigned int triangleIndex, unsigned int setIndex, double u0, double v0, double u1, double v1, double u2, double v2)
boolSetUVs(unsigned int setIndex, const float* uvs)
boolSetUVs(unsigned int setIndex, const double* uvs)
boolSetUVs(unsigned int setIndex, const MFloatArray& uvs)
boolSetUVs(unsigned int setIndex, const MDoubleArray& uvs)
boolSetTriangleMaterial(unsigned int triangleIndex, const MaxwellMayaMaterial* material)
boolMaxwellMayaMesh class#SetTrianglesMaterial(unsigned int numTriangles, const unsigned int* triangleIndices, const MaxwellMayaMaterial* material)
boolSetTrianglesMaterial(const MIntArray& triangleIndices, const MaxwellMayaMaterial* material)
boolAddGeometryModifier(const MaxwellMayaExtensionParams* params)
unsigned intGetNumPositions() const
unsigned intGetNumNormals() const
unsigned intGetNumTriangles() const
unsigned intGetNumSteps() const
unsigned intGetNumUVSets() const
boolGetPosition(unsigned int positionIndex, unsigned int stepIndex, MPoint& position) const
boolGetPositions(unsigned int stepIndex, MPointArray& positions) const
boolGetNormal(unsigned int normalIndex, unsigned int stepIndex, MVector& normal) const
boolGetNormals(unsigned int stepIndex, MVectorArray& normals) const
boolGetTriangle(unsigned int triangleIndex, unsigned int& posIdx0, unsigned int& posIdx1, unsigned int& posIdx2, unsigned int& normIdx0, unsigned int& normIdx1, unsigned int& normIdx2) const
boolGetTriangles(MIntArray& positionIndices, MIntArray& normalIndices) const
boolGetTriangleUVs(unsigned int triangleIndex, unsigned int setIndex, double& u0, double& v0, double& u1, double& v1, double& u2, double& v2) const
boolGetUVs(unsigned int setIndex, MFloatArray& uvs) const
MaxwellMayaMaterial*GetTriangleMaterial(unsigned int triangleIndex)
const MaxwellMayaMaterial*GetTriangleMaterial(unsigned int triangleIndex) const
 Inherited methods

bool SetPosition(unsigned int positionIndex, unsigned int stepIndex, const MPoint& position)

...