This reference page is linked to from the following overview topics: Sculpting and Brushes.
FaceEnumerator is a base class for operations that must be applied.
across mesh faces. To use this class, derive a new enumerator from it. Override the Operator() method to perform the operation you need done to the mesh face. You must also override the Tester() method to test faces to see if they should be included in the operation. To use your class, call Mesh::EnumerateFaces, specify a starting face, and pass in your enumerator class. Starting with the specified face, your operation will be applied to adjacent faces. If your Tester method returns false for a given face, then that face will not be processed, nor will the operation be propagated to its neighbors.
#include <mesh.h>
Public Member Functions |
|
virtual void | Operator (class Mesh *pMesh, unsigned int iFaceIndex) |
Override this method to make it perform your
desired operation on a face. |
|
virtual bool | Tester (class Mesh *pMesh, unsigned int iFaceIndex) |
Override this method to check a face to see
if it should be included in. |
virtual void Operator | ( | class Mesh * | pMesh, |
unsigned int | iFaceIndex | ||
) | [virtual] |
Override this method to make it perform your desired operation on a face.
[in] | pMesh | pointer to the mesh being processed |
[in] | iFaceIndex | index of the face to be processed |
virtual bool Tester | ( | class Mesh * | pMesh, |
unsigned int | iFaceIndex | ||
) | [virtual] |
Override this method to check a face to see if it should be included in.
the enumeration. Return true if it should; false otherwise
[in] | pMesh | pointer to the mesh being processed |
[in] | iFaceIndex | index of the face to be processed |