GMModelInterfaces CATCGMTessStripeIter
Usage: you must use this class as is. You should never derive it.
public class CATCGMTessStripeIter
Class defining the iterator on the strips 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 strips
- Go the next result
- Retrieve the result
- Optionally, reset to begin again.
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
~CATCGMTessStripeIter()
- 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()
- FROM CATIA V5R17
Returns the number of points of the current strip.
- o
GetStriNuPts(int[])
- Retrieves the points ranks (as int) defining the current strip.
- o
GetStriNuPts(CATLONG32[])
- Retrieves the points ranks (as CATLONG32) 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 ~CATCGMTessStripeIter
| public virtual ~CATCGMTessStripeIter( | ) |
-
Destructor.
Methods
o GetNbStri
| public virtual GetNbStri( | | ioNbPtsAll) |
-
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 GetStriAllNuPts( | | iNbPts, |
| | iNuPts) |
-
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 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 GetStriNuPts( | | iNuPts) |
-
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 GetStriNuPts
| public virtual GetStriNuPts( | | iNuPts) |
-
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 GoToNext
| public virtual GoToNext( | ) |
-
Skips to the next strip.
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: CATCGMTessStripeIter.h
If needed, your Imakefile.mk should include the module: CATGMModelInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.