All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Tessellation Class CATTessEdgeIter

CATTessEdgeIter
 

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


public class CATTessEdgeIter

Class that outputs the point tessellation numbers corresponding to the the points on a given edge.

The points are given relatively to one bounded (or adjacent) face. By assumption, the edges are considered here to bound two faces at most.
Such class is directly created by the CATBodyTessellator.GetEdge method. Its deletion is managed at the CATBodyTessellator deletion.
Use it according to the following scheme:


Method Index


o GetEdgeNbPts(int)
Returns the number of tesselation points for the edge relative to an adjacent face.
o GetEdgeNuPts(int,int[])
Returns the tessellation point numbers for the edge relative to an adjacent face.
o GetEdgeW(int,double[],short[])
Returns the tessellation point parameters for the edge relative to an adjacent face.
o GetFace(int)
Returns the pointer to an adjacent face.
o GetPCurve(int)
Returns the pointer to a PCurve.
o GetSameSens(int)
Returns a CATBoolean is TRUE if the tessellation point numbers for the edge and the Edge are traveling throughtthe same sense.

Methods


o GetEdgeNbPts
public inline int GetEdgeNbPts(int iNuFace) const
Returns the number of tesselation points for the edge relative to an adjacent face.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
Returns:
The number of tessellation points for the edge relative the iNuFace adjacent face.
o GetEdgeNuPts
public virtual void GetEdgeNuPts(int iNuFace,
int[] ioNuPts) const
Returns the tessellation point numbers for the edge relative to an adjacent face.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
ioNuPts
The array of the tessellation point numbers. This array must be allocated and deallocated by the caller. Its dimension is given by the
CATTessEdgeIter.GetEdgeNbPts method. If the contour is open, the first and last points are different.
o GetEdgeW
public virtual void GetEdgeW(int iNuFace,
double[] ioCrvParam,
short[] ioQualPts)const
Returns the tessellation point parameters for the edge relative to an adjacent face.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
ioCrvParam
The array of the tessellation point parameters (as a CATCrvParam on the underlying edge curve)
ioQualPts
The array which allows you to determine the ioCrvParam quality:
  • 0 : ioCrvParam impossible computation
  • 1 : ioCrvParam exact computation
  • 2 : ioCrvParam does not neccessarily correspond to Xyz or Uv (merged points)
These arrayes must be allocated and deallocated by the caller. Its dimension is given by the
CATTessEdgeIter.GetEdgeNbPts method. If the contour is open, the first and last points are different.
o GetFace
public inline CATFace * GetFace(int iNuFace) const
Returns the pointer to an adjacent face.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
Returns:
The pointer to the corresponding face.
o GetPCurve
public inline CATPCurve * GetPCurve(int iNuFace) const
Returns the pointer to a PCurve.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
Returns:
The pointer to the corresponding PCurve.
o GetSameSens
public inline CATBoolean GetSameSens(int iNuFace) const
Returns a CATBoolean is TRUE if the tessellation point numbers for the edge and the Edge are traveling throughtthe same sense.
Parameters:
iNuFace
The first (iNuFace=1) or second (iNuFace=2) adjacent face.
Returns:
a CATBoolean is TRUE if the tessellation point numbers for the edge and the Edge are traveling throughtthe same sense.

This object is included in the file: CATTessEdgeIter.h
If needed, your Imakefile.mk should include the module: CATTessellation

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