GMModelInterfaces CATCGMTessFanIter

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


public class CATCGMTessFanIter

Class defining the iterator on the fans 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:

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 ~CATCGMTessFanIter()

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 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 ~CATCGMTessFanIter
public virtual ~CATCGMTessFanIter()

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 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 virtual 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: CATCGMTessFanIter.h
If needed, your Imakefile.mk should include the module: CATGMModelInterfaces

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