All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Tessellation Class CATTessStripeIter

CATTessStripeIter
 

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


public class CATTessStripeIter

Class defining the iterator on the strips 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 strip is closed, the first and last point of the strip 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 ~CATTessStripeIter()
Destructor

Method Index


o GetNbStri(CATLONG32&)
Returns the number of strips.
o GetStriAllNuPts(int[],int[])
Globally retrieves the points ranks for all the strips.
o GetStriNbPts()
UP TO CATIA V5R17 Returns the number of points of the current strip.
o GetStriNbPts()
FROM CATIA V5R17 Returns the number of points of the current strip.
o GetStriNuPts(CATLONG32[])
Retrieves the points ranks (as CATLONG32) defining the current strip.
o GetStriNuPts(int[])
Retrieves the points ranks (as int) defining the current strip.
o GoToNext()
Skips to the next strip.
o IsExhausted()
Tests whether the list is completed.
o Reset()
Resets the iterator to the beginning.

Constructor and Destructor


o ~CATTessStripeIter
public virtual ~CATTessStripeIter()
Destructor

Methods


o GetNbStri
public inline CATLONG32 GetNbStri(CATLONG32& ioNbPtsAll)const
Returns the number of strips.
Parameters:
ioNbPtsAll
The sum of the number of points for the definition of all the strips.
Returns:
The number of strips.
o GetStriAllNuPts
public virtual void GetStriAllNuPts(int[] iNbPts,
int[] iNuPts) const
Globally retrieves the points ranks for all the strips.
Parameters:
iNbPts[]
The array of number of points for each strip. The allocation has to be managed by the caller: use GetNbStri 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 GetStriNbPts
public virtual CATLONG32 GetStriNbPts()const
UP TO CATIA V5R17 Returns the number of points of the current strip.
Returns:
The number of points of the current strip.
o GetStriNbPts
public virtual CATLONG32 GetStriNbPts()
FROM CATIA V5R17 Returns the number of points of the current strip.
Returns:
The number of points of the current strip.
o GetStriNuPts
public virtual void GetStriNuPts(CATLONG32[] iNuPts) const
Retrieves the points ranks (as CATLONG32) defining the current strip.
Parameters:
iNuPts[]
The array of the points ranks. The allocation has to be managed by the caller: use GetStriNbPts for its dimension.
o GetStriNuPts
public virtual void GetStriNuPts(int[] iNuPts) const
Retrieves the points ranks (as int) defining the current strip.
Parameters:
iNuPts[]
The array of the points ranks. The allocation has to be managed by the caller: use GetStriNbPts for its dimension.
o GoToNext
public virtual void GoToNext()
Skips to the next strip.
o IsExhausted
public virtual CATLONG32 IsExhausted()const
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: CATTessStripeIter.h
If needed, your Imakefile.mk should include the module: CATTessellation

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