FaceEnumerator Class Reference

#include <mesh.h>

Class Description

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.

Definition at line 225 of file 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. 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...
 

Member Function Documentation

virtual void Operator ( class Mesh pMesh,
unsigned int  iFaceIndex 
)
virtual

Override this method to make it perform your desired operation on a face.

Parameters
[in]pMeshpointer to the mesh being processed
[in]iFaceIndexindex 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

Parameters
[in]pMeshpointer to the mesh being processed
[in]iFaceIndexindex of the face to be processed

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