All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Tessellation Class CATTessPointPolyIter

CATTessPointPolyIter
 

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


public class CATTessPointPolyIter

Class defining the iterator on the points 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 GetFace()
Returns the CATFace of the current point (in case of a face or a surface).
o GetPointNor(CATMathVector const*&)
Retrieves a pointer to the normal at the current point.
o GetPointUv()
Returns the parameters of the current point (in case of a face or a surface).
o GetPointXyz()
Returns the Cartesian coordinates of the current point.
o GoToNext()
Skips to the next point.
o IsExhausted()
Tests whether the list is completed.
o Reset()
Resets the iterator to the beginning.

Methods


o GetFace
public CATFace * GetFace()
Returns the CATFace of the current point (in case of a face or a surface).
Returns:
The pointer to the CATFace
o GetPointNor
public virtual CATBoolean GetPointNor(CATMathVector const*& oNor)
Retrieves a pointer to the normal at the current point.
Parameters:
oNor
The pointer to the normal.
o GetPointUv
public virtual double const * GetPointUv()const
Returns the parameters of the current point (in case of a face or a surface).
Returns:
The array of parameters.
o GetPointXyz
public virtual double const * GetPointXyz()const
Returns the Cartesian coordinates of the current point.
Returns:
The array of the Cartesian coordinates.
o GoToNext
public virtual void GoToNext()
Skips to the next point.
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: CATTessPointPolyIter.h
If needed, your Imakefile.mk should include the module: CATTessellation

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