C++ API Reference
|
Index mapper containing indices of a subset of a geometry. More...
#include <MPxGPUDeformer.h>
Public Member Functions | |
MIndexMapper () | |
Constructs a MIndexMapper. | |
~MIndexMapper () | |
Destructor. | |
MIndexMapper (const MIndexMapper &) | |
Constructs a MIndexMapper. More... | |
Index | fullCount () const |
This method returns the total number of points of the geometry. More... | |
Index | affectCount () const |
This method returns the number of points in a subset of the geometry. More... | |
Index | affectToFull (Index aid) const |
This method remaps the affect index of a subset to the full index of the geometry. More... | |
Index mapper containing indices of a subset of a geometry.
An MIndexMapper maps indices between the full set of a geometry and the subset of indices that is affected by a deformer. If a deformer affects f.e only 1000 verts of a total of 15000 verts then the affectMap will be of size 1000 and contain the indices into the full table of points.
MIndexMapper | ( | const MIndexMapper & | other | ) |
Constructs a MIndexMapper.
[in] | other | The MIndexMapper to copy. |
MIndexMapper::Index fullCount | ( | ) | const |
This method returns the total number of points of the geometry.
MIndexMapper::Index affectCount | ( | ) | const |
This method returns the number of points in a subset of the geometry.
MIndexMapper::Index affectToFull | ( | Index | aid | ) | const |
This method remaps the affect index of a subset to the full index of the geometry.
[in] | aid | the index into the affect list we want to remap |