GMModelInterfaces CATCGMTessPointPolyIter
Usage: you must use this class as is. You should never derive it.
public class CATCGMTessPointPolyIter
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:
- 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
~CATCGMTessPointPolyIter()
- Destructor.
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.
Constructor and Destructor
o ~CATCGMTessPointPolyIter
public virtual ~CATCGMTessPointPolyIter( | ) |
-
Destructor.
Methods
o 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 GetPointNor( | | oNor) |
-
Retrieves a pointer to the normal at the current point.
- Parameters:
-
- oNor
- The pointer to the normal.
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 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: CATCGMTessPointPolyIter.h
If needed, your Imakefile.mk should include the module: CATGMModelInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.