AdjacentVertexEnumerator Class Reference

AdjacentVertexEnumerator Class Reference
+ Related help topics:

#include <mesh.h>

Class Description

AdjacentVertexEnumerator is a base class for operations that must be applied to all vertices adjacent to a specified one.

To use this class, derive your new class from it. Override the ProcessAdjacentVertex() method to perform the operation you need done to the mesh vertex.

To use your class, call Mesh::EnumerateAdjacentVertices, specify a starting face and vertex, and pass in your enumerator class. Your operation will be applied to all adjacent vertices.

Definition at line 286 of file mesh.h.

Public Member Functions

virtual void ProcessAdjacentVertex (unsigned int iVertexIndex, unsigned int iFaceIndex)
 
 AdjacentVertexEnumerator ()
 Set this to true to enumerate fake triangles, false to skip fake triangles. More...
 
virtual ~AdjacentVertexEnumerator ()
 

Public Attributes

bool m_bEdge
 
unsigned char m_iCurrentCorner
 This is set to true if the original vertex passed in to Mesh::EnumerateAdjacentVertices() is on the edge of the mesh. More...
 
unsigned char m_iVertexCorner
 The corner within the face that corresponds to the current vertex. More...
 
bool m_bEnumerateFakeTriangles
 The corner within the face that corresponds to the original vertex. More...
 

Constructor & Destructor Documentation

Set this to true to enumerate fake triangles, false to skip fake triangles.

false by default.

virtual ~AdjacentVertexEnumerator ( )
virtual

Member Function Documentation

virtual void ProcessAdjacentVertex ( unsigned int  iVertexIndex,
unsigned int  iFaceIndex 
)
virtual
Parameters
[in]iVertexIndexindex of the vertex being processed
[in]iFaceIndexindex of a face associated with the vertex being processed (chosen at random)

Member Data Documentation

bool m_bEdge

Definition at line 295 of file mesh.h.

unsigned char m_iCurrentCorner

This is set to true if the original vertex passed in to Mesh::EnumerateAdjacentVertices() is on the edge of the mesh.

Definition at line 298 of file mesh.h.

unsigned char m_iVertexCorner

The corner within the face that corresponds to the current vertex.

Definition at line 299 of file mesh.h.

bool m_bEnumerateFakeTriangles

The corner within the face that corresponds to the original vertex.

Definition at line 301 of file mesh.h.


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