All Frameworks  Class Hierarchy  This Framework  Indexes   

PolyhedralInterfaces Class CATIPolyMeshTriangleVertexIterator

Usage: you must use this class as is. You should never derive it.


public class CATIPolyMeshTriangleVertexIterator

Iterator through triangles defined as three vertices.
Example:

 CATIPolyMeshTriangleVertexIterator *it = 0;
 if (SUCCEDED (Mesh.GetTriangleIterator (it) && it))
 {
 int vertices[3];
 for (it->Begin (); !it->End(); ++(*it))
  {
   it->Get (vertices);  // Also it->Get (vertices[0], vertices[1], vertices[2]);
  }
  it->Release();
 it = 0;
  } // Next triangle
 


Method Index


o Begin()
Set the iterator to the beginning.
o End()
Return TRUE if the iterator has reached the end and FALSE otherwise.
o Get(int[])
Return the three vertex indices of the current triangle.
o operator++()
Increment the iterator to the next valid element.

Methods


o Begin
public virtual Begin()
Set the iterator to the beginning.
o End
public virtual End()
Return TRUE if the iterator has reached the end and FALSE otherwise.
o Get
public virtual Get( vertices)
Return the three vertex indices of the current triangle.
o operator++
public virtual operator++()
Increment the iterator to the next valid element.

This object is included in the file: CATIPolyMeshTriangleVertexIterator.h
If needed, your Imakefile.mk should include the module: CATPolyhedralInterfaces

Copyright © 2003, Dassault Systèmes. All rights reserved.