GMModelInterfaces CATCGMTessPointIter

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


public class CATCGMTessPointIter

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

Such iterator is directly created by the or methods. Its deletion is managed at the CATICGMBodyTessellator and CATICGMCellTessellator 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.


Constructor and Destructor Index


o ~CATCGMTessPointIter()
Destructor.

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.

Constructor and Destructor


o ~CATCGMTessPointIter
public virtual ~CATCGMTessPointIter()
Destructor.

Methods


o GetNbPoint
public virtual GetNbPoint()
Returns the number of computed points.
Returns:
The number of computed points.
o GetPointNor
public virtual GetPointNor( oNor)
Retrieves a pointer to the normal at the current point.
Parameters:
oNor
The pointer to the normal.
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 GetPointNu
public virtual GetPointNu()
Returns the rank of the current point.
Returns:
The rank of the current point.
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 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 GetPointXyz
public virtual GetPointXyz()
Returns the Cartesian coordinates of the current point.
Returns:
The array of the Cartesian coordinates.
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 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
public virtual Reset()
Resets the iterator to the beginning.

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

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.