All Frameworks Class Hierarchy This Framework Previous Next Indexes
Tessellation Class CATTessFanIter
CATTessFanIter
Usage: you must use this class as is. You should never derive it.
public class CATTessFanIter
Class defining the iterator on the fans 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 fans
- Go the next result
- Retrieve the result
- Optionally, reset to begin again.
If the fan is closed, the first and last point of the fan are different.
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
GetFanAllNuPts(int[],int[])
- Globally retrieves the points ranks for all the fans.
- o
GetFanNbPts()
- FROM CATIA V5R17
Returns the number of points of the current fan.
- o
GetFanNbPts()
- UP TO CATIA V5R17
Returns the number of points of the current fan.
- o
GetFanNuPts(CATLONG32[])
- Retrieves the points ranks (as CATLONG32) defining the current fan.
- o
GetFanNuPts(int[])
- Retrieves the points ranks (as int) defining the current fan.
- o
GetNbFan(CATLONG32&)
- Returns the number of fans.
- o
GoToNext()
- Skips to the next fan.
- o
IsExhausted()
- Tests whether the list is completed.
- o
Reset()
- Resets the iterator to the beginning.
Methods
o GetFanAllNuPts
public virtual void GetFanAllNuPts( | int[] | iNbPts, |
| int[] | iNuPts) const |
-
Globally retrieves the points ranks for all the fans.
- Parameters:
-
- iNbPts[]
- The array of number of points for each fan. The allocation has to be managed by
the caller: use GetNbFan for its dimension.
- iNuPts[]
- The array of the point ranks. The allocation has to be managed by
the caller: use oNbPtsAll for its dimension.
o GetFanNbPts
-
FROM CATIA V5R17
Returns the number of points of the current fan.
- Returns:
- The number of points of the current fan.
o GetFanNbPts
-
UP TO CATIA V5R17
Returns the number of points of the current fan.
- Returns:
- The number of points of the current fan.
o GetFanNuPts
public virtual void GetFanNuPts( | CATLONG32[] | iNuPts) const |
-
Retrieves the points ranks (as CATLONG32) defining the current fan.
- Parameters:
-
- iNuPts[]
- The array of the points ranks. The allocation has to be managed by
the caller: use GetFanNbPts for its dimension.
o GetFanNuPts
public virtual void GetFanNuPts( | int[] | iNuPts) const |
-
Retrieves the points ranks (as int) defining the current fan.
- Parameters:
-
- iNuPts[]
- The array of the points ranks. The allocation has to be managed by
the caller: use GetFanNbPts for its dimension.
o GetNbFan
-
Returns the number of fans.
- Parameters:
-
- ioNbPtsAll
- The sum of the number of points for the definition of all the fans.
- Returns:
- The number of fans.
o GoToNext
public virtual void GoToNext( | ) |
-
Skips to the next fan.
o 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 void Reset( | ) |
-
Resets the iterator to the beginning.
This object is included in the file: CATTessFanIter.h
If needed, your Imakefile.mk should include the module: CATTessellation