GMModelInterfaces Interface CATICGMSurfaceTessellator

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


interface CATICGMSurfaceTessellator

Class defining a tessellation operator on surfaces.

This operator computes a discretized geometry on the surfaces as triangles. The corner of the triangles 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 AddSurface(CATSurface*,CATSurLimits&)
Adds an other surface to this CATICGMSurfaceTessellator.
o GetSurface(CATSurface*,CATBoolean&,CATCGMTessPointIter**,CATCGMTessStripeIter**,CATCGMTessFanIter**,CATCGMTessPolyIter**,CATCGMTessTrianIter**)
Retrieves the results associated with a surface.
o Run()
Runs this CATICGMSurfaceTessellator.
o SetStep(double)
Defines a finite step for this CATICGMCurveTessellator.

Methods


o AddSurface
public virtual AddSurface( iSurface,
const iSurfaceLimits)
Adds an other surface to this CATICGMSurfaceTessellator.
Parameters:
iSurface
The other surface to tessellate in the same operation.
iSurfaceLimits
The part of the surface to take into account.
o GetSurface
public virtual GetSurface( iSurface,
ioPlane,
oPoints,
oStrips,
oFans,
oPolygons,
oTriangles)
Retrieves the results associated with a surface.
All the output iterators are allocated by the GetSurface method, and are deleted when the operator is deleted.
Parameters:
iSurface
A surface among the input surfaces.
ioPlane
Retrieves 1 if the surface is planar, 0 otherwise.
oPoints
A pointer to a CATCGMTessPointIter, to retrieve the computed points.
oStrips
A pointer to a CATCGMTessStripeIter, to retrieve the computed triangle strips.
oStrips
A pointer to a CATCGMTessFanIter, to retrieve the computed triangle fans.
oStrips
A pointer to a CATCGMTessPolygonIter, to retrieve the computed polygons.
o Run
public virtual Run()
Runs this CATICGMSurfaceTessellator.
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: CATICGMSurfaceTessellator.h
If needed, your Imakefile.mk should include the module: CATGMModelInterfaces

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