All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Tessellation Class CATTessPointIter

CATTessPointIter
 

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


public class CATTessPointIter

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 GetNbPoint()
Returns the number of computed points.
o GetPointNor(CATMathVector const*&)
Retrieves a pointer to the normal at the current point.
o GetPointNorAll(float[][3])
Globally retrieves the normal at each point.
o GetPointNu()
Returns the rank of the current point.
o GetPointUv()
Returns the parameters of the current point (in case of a face or a surface).
o GetPointUvAll(float[][2])
Globally retrieves the parameters of all the points (in case of a face or a surface).
o GetPointXyz()
Returns the Cartesian coordinates of the current point.
o GetPointXyzAll(float[][3])
Globally retrieves the Cartesian coordinates of all the points.
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 GetNbPoint
public inline CATLONG32 GetNbPoint()const
Returns the number of computed points.
Returns:
The number of computed points.
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 GetPointNorAll
public virtual void GetPointNorAll(float[][3] iNormals) const
Globally retrieves the normal at each point.
Parameters:
iNormals[][3]
The array of the coordinates. The allocation has to be managed by the caller: use GetNbPoint for its dimension.
o GetPointNu
public virtual CATLONG32 GetPointNu()const
Returns the rank of the current point.
Returns:
The rank of the current point.
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 GetPointUvAll
public virtual void GetPointUvAll(float[][2] iUv) const
Globally retrieves the parameters of all the points (in case of a face or a surface).
Parameters:
iUv[][2]
The array of the parameters. The allocation has to be managed by the caller: use GetNbPoint for its dimension.
o GetPointXyz
public virtual double const * GetPointXyz()const
Returns the Cartesian coordinates of the current point.
Returns:
The array of the Cartesian coordinates.
o GetPointXyzAll
public virtual void GetPointXyzAll(float[][3] iCoordinates) const
Globally retrieves the Cartesian coordinates of all the points.
Parameters:
iCoordinates[][3]
The array of the coordinates. The allocation has to be managed by the caller: use GetNbPoint for its dimension.
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: CATTessPointIter.h
If needed, your Imakefile.mk should include the module: CATTessellation

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