MaxwellMayaMesh class

MaxwellMayaMesh class

Description

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 returns ShapeType_Mesh. You can create meshes by calling the MaxwellMayaAPI::CreateMesh method.

Base class: MaxwellMayaShape.

Methods

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

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 MaxwellMayaMaterial* material)

bool

SetTrianglesMaterial(unsigned int numTriangles, const unsigned int* triangleIndices, const MaxwellMayaMaterial* material)

bool

SetTrianglesMaterial(const MIntArray& triangleIndices, const MaxwellMayaMaterial* material)

bool

AddGeometryModifier(const 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 MaxwellMayaMaterial*

GetTriangleMaterial(unsigned int triangleIndex) const

 

Inherited methods