C++ API Reference
MIndexMapper Class Reference

Index mapper containing indices of a subset of a geometry. More...

#include <MIndexMapper.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...
 

Detailed Description

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.

Examples:
basicMorphNode/basicMorphNode.cpp, exampleFalloff/smoothFalloffNode.cpp, exampleFalloff/smoothFalloffNode.h, and offsetNode/offsetNode.cpp.

Constructor & Destructor Documentation

MIndexMapper ( const MIndexMapper other)

Constructs a MIndexMapper.

Parameters
[in]otherThe MIndexMapper to copy.

Member Function Documentation

MIndexMapper::Index fullCount ( ) const

This method returns the total number of points of the geometry.

Returns
the number of points of the geometry
MIndexMapper::Index affectCount ( ) const

This method returns the number of points in a subset of the geometry.

Returns
the number of points in the subset of a geometry
Examples:
exampleFalloff/smoothFalloffNode.cpp.
MIndexMapper::Index affectToFull ( Index  aid) const

This method remaps the affect index of a subset to the full index of the geometry.

Parameters
[in]aidthe index into the affect list we want to remap
Returns
the remapped index or UINT_MAX (invalid) if it does not exist

The documentation for this class was generated from the following files: