All Frameworks  Class Hierarchy  This Framework  Indexes   

Tessellation Class 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:

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.


Constructor and Destructor Index


o ~CATTessFanIter()
Destructor

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(int[])
Retrieves the points ranks (as int) defining the current fan.
o GetFanNuPts(CATLONG32[])
Retrieves the points ranks (as CATLONG32) 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.

Constructor and Destructor


o ~CATTessFanIter
public virtual ~CATTessFanIter()
Destructor

Methods


o GetFanAllNuPts
public virtual GetFanAllNuPts( iNbPts,
iNuPts)
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
public virtual GetFanNbPts()
FROM CATIA V5R17 Returns the number of points of the current fan.
Returns:
The number of points of the current fan.
o GetFanNbPts
public virtual 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 GetFanNuPts( iNuPts)
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 GetFanNuPts
public virtual GetFanNuPts( iNuPts)
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 GetNbFan
public GetNbFan( ioNbPtsAll)
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 GoToNext()
Skips to the next fan.
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: CATTessFanIter.h
If needed, your Imakefile.mk should include the module: CATTessellation

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