#include <MHWGeometry.h>
A mapping of geometry index.
This class represents the index mapping of the multiple objects concatenated into a single render item.
When multiple objects are compatible, their geometry can be consolidated into a single render item, to provide better performance by concatening their index and vertex buffers.
The Geometry Index Mapping can be used to get the indexing details of the concatenated geometries to be able to render them separately.
Public Member Functions | |
MGeometryIndexMapping () | |
Constructor. | |
~MGeometryIndexMapping () | |
Destructor. | |
int | geometryCount () const |
Get the number of geometry described by the mapping. More... | |
MDagPath | dagPath (int geometryIdx) const |
Get the MDagPath of a geometry. More... | |
MObject | component (int geometryIdx) const |
Get the component of a geometry. More... | |
int | indexStart (int geometryIdx) const |
Get the index start of a geometry. More... | |
int | indexLength (int geometryIdx) const |
Get the index length of a geometry. More... | |
int geometryCount | ( | ) | const |
Get the number of geometry described by the mapping.
MDagPath dagPath | ( | int | geometryIdx | ) | const |
Get the MDagPath of a geometry.
[in] | geometryIdx | The index the geometry |
MObject component | ( | int | geometryIdx | ) | const |
Get the component of a geometry.
[in] | geometryIdx | The index the geometry |
int indexStart | ( | int | geometryIdx | ) | const |
Get the index start of a geometry.
The index start represents the offset of the geometry index data in the index buffer of the consolidated render item
[in] | geometryIdx | The index the geometry |
int indexLength | ( | int | geometryIdx | ) | const |
Get the index length of a geometry.
The index length represents the length of the geometry index data in the index buffer of the consolidated render item
[in] | geometryIdx | The index the geometry |