All Frameworks Class Hierarchy This Framework Indexes
Tessellation Class 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:
- Retrieve the number of points
- Go the next result
- Retrieve the result
- Optionally, reset to begin again.
This class also allows you to directly retrieve the results in an array that
you have to allocate and deallocate after use.
Constructor and Destructor Index
- o
~CATTessPointIter()
- Destructor
Method Index
- o
GetNbPoint()
- Returns the number of computed points.
- o
GetPointNorAll(float[][3])
- Globally retrieves the normal at each point.
- o
GetPointNor(CATMathVector const*&)
- Retrieves a pointer to the normal at the current point.
- o
GetPointNu()
- Returns the rank of the current point.
- o
GetPointUvAll(float[][2])
- Globally retrieves the parameters of all the points (in case of a face or a surface).
- o
GetPointUv()
- Returns the parameters of the current point (in case of a face or a surface).
- o
GetPointXyzAll(float[][3])
- Globally retrieves the Cartesian coordinates of all the points.
- 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.
Constructor and Destructor
o ~CATTessPointIter
| public virtual ~CATTessPointIter( | ) |
-
Destructor
Methods
o GetNbPoint
-
Returns the number of computed points.
- Returns:
- The number of computed points.
o GetPointNorAll
| public virtual GetPointNorAll( | | iNormals) |
-
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 GetPointNor
| public virtual GetPointNor( | | oNor) |
-
Retrieves a pointer to the normal at the current point.
- Parameters:
-
- oNor
- The pointer to the normal.
o GetPointNu
| public virtual GetPointNu( | ) |
-
Returns the rank of the current point.
- Returns:
- The rank of the current point.
o GetPointUvAll
| public virtual GetPointUvAll( | | iUv) |
-
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 GetPointUv
| public virtual GetPointUv( | ) |
-
Returns the parameters of the current point (in case of a face or a surface).
- Returns:
- The array of parameters.
o GetPointXyzAll
| public virtual GetPointXyzAll( | | iCoordinates) |
-
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 GetPointXyz
| public virtual GetPointXyz( | ) |
-
Returns the Cartesian coordinates of the current point.
- Returns:
- The array of the Cartesian coordinates.
o GoToNext
| public virtual GoToNext( | ) |
-
Skips to the next point.
o IsExhausted
| public virtual IsExhausted( | ) |
-
Tests whether the list is completed.
- Returns:
- The result of the test.
Legal values: 1 if the list is completed, 0 otherwise.
o 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