All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Tessellation Class CATTessTrianIter

CATTessTrianIter
 

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


public class CATTessTrianIter

Class defining the iterator on the triangles resulting from a Tessellation operator.

Such iterator is directly created by the CATBodyTessellator.GetFace or CATCellTessellator.GetFace methods. Its deletion is managed at the CATBodyTessellator and CATCellTessellator deletion.
Use it according to the following scheme:

This class also allows you to directly retrieve the results in an array that you have to allocate and deallocate after use.


Method Index


o GetNbTrian()
Returns the number of triangles.
o GetTrianAllNuPts(int[][3])
Globally retrieves the points ranks for all the triangles.
o GetTrianNuPts(CATLONG32[3])
Retrieves the points ranks (as CATLONG32) defining the current triangle.
o GetTrianNuPts(int[3])
Retrieves the points ranks (as int) defining the current triangle.
o GoToNext()
Skips to the next triangle.
o IsExhausted()
Tests whether the list is completed.
o Reset()
Resets the iterator to the beginning.

Methods


o GetNbTrian
public inline CATLONG32 GetNbTrian()const
Returns the number of triangles.
Returns:
The number of triangles.
o GetTrianAllNuPts
public virtual void GetTrianAllNuPts(int[][3] iNuPts) const
Globally retrieves the points ranks for all the triangles.
Parameters:
ioNuPts[][3]
The array of the point numbers. The allocation has to be managed by the caller: its dimension: 3* (strip->GetNbTrian()).
o GetTrianNuPts
public virtual void GetTrianNuPts(CATLONG32[3] iNuPts) const
Retrieves the points ranks (as CATLONG32) defining the current triangle.
Parameters:
iNuPts
The array [3] allocated by the caller.
o GetTrianNuPts
public virtual void GetTrianNuPts(int[3] iNuPts) const
Retrieves the points ranks (as int) defining the current triangle.
Parameters:
iNuPts
The array [3] allocated by the caller.
o GoToNext
public virtual void GoToNext()
Skips to the next triangle.
o IsExhausted
public virtual CATLONG32 IsExhausted()const
Tests whether the list is completed.
Returns:
The result of the test.
Legal values: 1 if the list is completed, 0 otherwise.
o Reset
public virtual void Reset()
Resets the iterator to the beginning.

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

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