FacetMeshIterator Class Reference
[Data Structures]

Inheritance diagram for FacetMeshIterator:
TMCObject FacetMeshFacetIterator

List of all members.

Public Member Functions

 FacetMeshIterator (const FacetMesh *mesh)
 FacetMeshIterator ()
void Initialize (const FacetMesh *mesh)
 Initialiaze the iterator.
int32 GetIndexA () const
int32 GetIndexB () const
int32 GetIndexC () const
uint32 GetUVSpaceID () const
void First ()
 Move to the first element in the mesh.
void Next ()
 Moves to the next triangle in the mesh.
boolean More ()
 Returns true if there are more triangles in the mesh.

Protected Attributes

boolean fHasUVSpaces
uint32 fCurIndex
const TMCArray< Triangle > * fFacets
const TMCArray< uint32 > * fUVSpaceID
const TrianglefCurrentFacet
TMCCountedPtr< FacetMeshfFacetMesh

Detailed Description

Iterates over a FacetMesh. Note that it is a pretty inefficient way to iterate over a FacetMesh and it is usually better to directly access the FacetMesh.

usage :

 while (iter.Next()) 
 {
    value=iter.Get...();
 }

Constructor & Destructor Documentation

FacetMeshIterator::FacetMeshIterator ( const FacetMesh mesh  ) 
FacetMeshIterator::FacetMeshIterator (  ) 

Member Function Documentation

void FacetMeshIterator::First (  )  [inline]

Move to the first element in the mesh.

int32 FacetMeshIterator::GetIndexA (  )  const [inline]
int32 FacetMeshIterator::GetIndexB (  )  const [inline]
int32 FacetMeshIterator::GetIndexC (  )  const [inline]
uint32 FacetMeshIterator::GetUVSpaceID (  )  const [inline]
void FacetMeshIterator::Initialize ( const FacetMesh mesh  ) 

Initialiaze the iterator.

Reimplemented in FacetMeshFacetIterator.

boolean FacetMeshIterator::More (  )  [inline]

Returns true if there are more triangles in the mesh.

Reimplemented in FacetMeshFacetIterator.

void FacetMeshIterator::Next (  )  [inline]

Moves to the next triangle in the mesh.


Member Data Documentation


The documentation for this class was generated from the following file:
Generated on Mon Apr 26 22:47:36 2010 for Carrara SDK Doc by  doxygen 1.6.3