All Frameworks  Class Hierarchy  This Framework  Indexes   

GMModelInterfaces Interface CATCGMTessBody

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


interface CATCGMTessBody

Class that constructs CATIPolySurface, CATIPolyCurve and CATIPolyPoint instances with the tessellated data computed from a CATBody.
The data may be computed by global or incremental tessellation depending how an instance is created. (See CATCGMCreateTessBody.) New CATIPolySurface, CATIPolyCurve or CATIPolyPoint instances may be created each time a method is called for a CATFace, CATEdge or CATVertex respectively. While these instances may be different, they will refer to the same tessellation data for a given CATCell. All instances returned by the methods are ref-counted and must be released by the caller.


Method Index


o GetBody()
Returns a reference to the CATBody that is tessellated.
o GetBody()
Returns a reference to the CATBody that is tessellated.
o GetPolyCurve(CATEdge&,CATIPolyCurve*&)
Given a CATEdge, returns a CATIPolyCurve with the tessellation of the underlying geometry (CATCurve.
o GetPolyPoint(CATVertex&,CATIPolyPoint*&)
Given a CATVertex, returns a CATIPolyPoint with the tessellation of the underlying geometry (CATPoint.
o GetPolySurfaceVertexLine(CATFace&,CATEdge&,CATIPolySurface&,CATIPolySurfaceVertexLine*&)
Given a CATFace, a CATEdge and a CATIPolySurface referring to the tessellation of the CATFace, returns a CATIPolySurfaceVertexLine with the tessellation of the underlying curve.
o GetPolySurfaceVertex(CATFace&,CATVertex&,CATIPolySurface&,CATIPolySurfaceVertex*&)
Given a CATFace, a CATVertex and a CATIPolySurface referring to the tessellation of the CATFace, returns a CATIPolySurfaceVertex with the tessellation of the underlying point.
o GetPolySurface(CATFace&,CATIPolySurface*&)
Given a CATFace returns a CATIPolySurface with the tessellation of the underlying geometry (CATSurface.
o GetSag()
Returns the target sag of the tessellation data.
o GetTessID(CATCell&,CATCGMTessID&)
Returns the tessellation ID associated to a CATCell.

Methods


o GetBody
public virtual GetBody()
Returns a reference to the CATBody that is tessellated.
Returns:
The CATBody that is tessellated.
o GetBody
public virtual GetBody()
Returns a reference to the CATBody that is tessellated.
Returns:
The CATBody that is tessellated.
o GetPolyCurve
public virtual GetPolyCurve( iEdge,
oPolyCurve)
Given a CATEdge, returns a CATIPolyCurve with the tessellation of the underlying geometry (CATCurve.) The returned CATIPolyCurve must be released by the caller.
Parameters:
iEdge
The input CATEdge whose tessellation is requested.
oPolyCurve
The output CATIPolyCurve referring to the tessellation data.
Returns:
  • S_OK if a CATIPolyCurve is returned successfully for this CATEdge.
  • E_FAIL or any other error when a failure occurs.
o GetPolyPoint
public virtual GetPolyPoint( iVertex,
oPolyPoint)
Given a CATVertex, returns a CATIPolyPoint with the tessellation of the underlying geometry (CATPoint.) The returned CATIPolyPoint must be released by the caller.
Parameters:
iVertex
The input CATVertex whose tessellation is requested.
oPolyPoint
The output CATIPolyPoint referring to the tessellation data.
Returns:
  • S_OK if a CATIPolyPoint is returned successfully for this CATVertex.
  • E_FAIL or any other error when a failure occurs.
o GetPolySurfaceVertexLine
public virtual GetPolySurfaceVertexLine( iFace,
iEdge,
iPolySurface,
oPolySurfaceVertexLine)
Given a CATFace, a CATEdge and a CATIPolySurface referring to the tessellation of the CATFace, returns a CATIPolySurfaceVertexLine with the tessellation of the underlying curve. Around an edge, all CATIPolySurfaceVertexLine-s have the same orientation. The returned CATIPolySurfaceVertexLine must be released by the caller.
Parameters:
iFace
The input CATFace whose CATEdge is a boundary of.
iEdge
The input CATEdge whose tessellation is requested.
iPolySurface
The input polyhedral surface containing the tessellation of the CATFace. (See GetPolySurface.)
oPolySurfaceVertexLine
The output CATIPolySurfaceVertexLine referring to the tessellation data.
Returns:
  • S_OK if a CATIPolySurfaceVertexLine is returned successfully for this CATEdge.
  • E_FAIL or any other error when a failure occurs.
o GetPolySurfaceVertex
public virtual GetPolySurfaceVertex( iFace,
iVertex,
iPolySurface,
oPolySurfaceVertex)
Given a CATFace, a CATVertex and a CATIPolySurface referring to the tessellation of the CATFace, returns a CATIPolySurfaceVertex with the tessellation of the underlying point. The returned CATIPolySurfaceVertex must be released by the caller.
Parameters:
iFace
The input CATFace whose CATVertex belongs to.
iVertex
The input CATVertex whose tessellation is requested.
iPolySurface
The input polyhedral surface containing the tessellation of the CATFace. (See GetPolySurface.)
oPolySurfaceVertex
The output CATIPolySurfaceVertex referring to the tessellation data.
Returns:
  • S_OK if a CATIPolySurfaceVertex is returned successfully for this CATVertex.
  • E_FAIL or any other error when a failure occurs.
o GetPolySurface
public virtual GetPolySurface( iFace,
oPolySurface)
Given a CATFace returns a CATIPolySurface with the tessellation of the underlying geometry (CATSurface.) The orientation of the returned instance is set according to the orientation of the CATFace with respect to the CATBody. A set of CATIPolySurface instances returned by this method should therefore all have the same orientation. The returned CATIPolySurface must be released by the caller.
Parameters:
iFace
The input CATFace whose tessellation is requested.
oPolySurface
The output CATIPolySurface referring to the tessellation data.
Returns:
  • S_OK if a CATIPolySurface is returned successfully for this CATFace.
  • E_FAIL or any other error when a failure occurs.
o GetSag
public virtual GetSag()
Returns the target sag of the tessellation data. This is the sag that was defined in the input parameters.
Returns:
The sag of the tessellation data.
o GetTessID
public virtual GetTessID( iCell,
oTessID)
Returns the tessellation ID associated to a CATCell.
Parameters:
iCell
The input CATCell.
oTessID
The output CATCGMTessID.
Returns:
  • S_OK if the CATCGMTessID has been set.
  • E_FAIL or any other error when a failure occurs and the CATCGMTessID has not been set.

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

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