#include <mesh.h>
FaceEnumerator is a base class for operations that must be applied across mesh faces.
To use this class, derive your new class 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.
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. More... | |
virtual bool | Tester (class Mesh *pMesh, unsigned int iFaceIndex) |
Override this method to check a face to see if it should be included in the enumeration. More... | |
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 |
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 |