GMModelInterfaces Interface CATICGMCurveTessellator

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATICGMCurveTessellator

Class defining a tessellation operator on curves.

This operator computes a discretized geometry on the curves as bars. The extremities of the bars are called points. Three parameters tune the tessellation result:

Sag
Defines the maximum distance between a bar and the object to tessellate
Step
Defines the maximum length of a bar. If not defined, the step is infinite (this parameter is unused)
Angle
Defines the maximum angle between the normals at each bar end.
The tessellation operator follows the scheme of all CGM operator:


Method Index


o AddCurve(CATCurve*,CATCrvLimits&)
Adds an other curve to this CATICGMCurveTessellator.
o GetCurve(CATCurve*,CATLONG32&,float**)
Retrieves the results (in floats) associated with a curve.
o GetCurve(CATCurve*,CATLONG32&,double**)
Retrieves the results (in doubles) associated with a curve.
o GetCurve(CATCurve*,CATMathSetOfPointsND**,CATMathSetOfPointsND**)
Retrieves the results associated with a curve.
o Run()
Runs this CATICGMCurveTessellator.
o SetStep(double)
Defines a finite step for this CATICGMCurveTessellator.

Methods


o AddCurve
public virtual AddCurve( iCurve,
const iCurveLimits)
Adds an other curve to this CATICGMCurveTessellator.
Parameters:
iCurve
The other curve to tessellate in the same operation.
iCurveLimits
The part of the curve to take into account.
o GetCurve
public virtual GetCurve( iCurve,
ioNumberOfPoints,
oPointData)
Retrieves the results (in floats) associated with a curve.
Parameters:
iCurve
A curve among the input curves.
ioNumberOfPoints
The number of points of the resulting tessellation.
oPointData
The array of the resulting points. This array is allocated by the GetCurve method. The j-th coordinate of the i-th point is oPointData[3*(i-1)+j-1].
o GetCurve
public virtual GetCurve( iCurve,
ioNumberOfPoints,
oPointData)
Retrieves the results (in doubles) associated with a curve.
Parameters:
iCurve
A curve among the input curves.
ioNumberOfPoints
The number of points of the resulting tessellation.
oPointData
The array of the resulting points. This array is allocated by the GetCurve method. The j-th coordinate of the i-th point is oPointData[3*(i-1)+j-1].
o GetCurve
public virtual GetCurve( iCurve,
oMathPoints,
oCrvParams)
Retrieves the results associated with a curve.
Parameters:
iCurve
A curve among the input curves.
oMathPoints
A CATMathSetOfPointsND pointer. This set contains the points (as 3 Cartesian coordinates) of the resulting tessellation.
oCrvParams
A CATMathSetOfPointsND pointer. This set contains the points (as a CATCrvParam on the underlying edge curve) of the resulting tessellation.
o Run
public virtual Run()
Runs this CATICGMCurveTessellator.
o SetStep
public virtual SetStep( iStep)
Defines a finite step for this CATICGMCurveTessellator.
Parameters:
iStep
The Step value.

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

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