GMModelInterfaces CATCGMTessTrianIter
Usage: you must use this class as is. You should never derive it.
public class CATCGMTessTrianIter
Class defining the iterator on the triangles 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 triangles
- Go the next result
- Retrieve the result
- Optionally, reset to begin again.
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
GetNbTrian()
- Returns the number of triangles.
- o
GetTrianAllNuPts(int[][3])
- Globally retrieves the points ranks for all the triangles.
- o
GetTrianNuPts(int[3])
- Retrieves the points ranks (as int) defining the current triangle.
- o
GetTrianNuPts(CATLONG32[3])
- Retrieves the points ranks (as CATLONG32) defining the current triangle.
- o
GoToNext()
- Skips to the next triangle.
- o
IsExhausted()
- Tests whether the list is completed.
- o
Reset()
- Resets the iterator to the beginning.
Methods
o GetNbTrian
public virtual GetNbTrian( | ) |
-
Returns the number of triangles.
- Returns:
- The number of triangles.
o GetTrianAllNuPts
public virtual GetTrianAllNuPts( | | iNuPts) |
-
Globally retrieves the points ranks for all the triangles.
- Parameters:
-
- ioNuPts[][3]
- The array of the point numbers. The allocation has to be managed by
the caller: its dimension: 3* (strip->GetNbTrian()).
o GetTrianNuPts
public virtual GetTrianNuPts( | | iNuPts) |
-
Retrieves the points ranks (as int) defining the current triangle.
- Parameters:
-
- iNuPts
- The array [3] allocated by the caller.
o GetTrianNuPts
public virtual GetTrianNuPts( | | iNuPts) |
-
Retrieves the points ranks (as CATLONG32) defining the current triangle.
- Parameters:
-
- iNuPts
- The array [3] allocated by the caller.
o GoToNext
public virtual GoToNext( | ) |
-
Skips to the next triangle.
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: CATCGMTessTrianIter.h
If needed, your Imakefile.mk should include the module: CATGMModelInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.