All Frameworks  Class Hierarchy  This Framework  Indexes   

PolyhedralInterfaces Interface CATIPolySurface

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


interface CATIPolySurface

Interface to a polyhedral surface.
A polyhedral surface is a surface represented by vertices, facets, layers and support. It consists of: o Iterators to cycle through the vertices and facets. o Layers that store some properties about the vertices, facets or the surface. o Neighborhoods that provide the links between the vertices and the facets. o A surface support that provide additional information about the geometry of the surface. The discrete data (vertices and facets) are referenced by integer indices. Implementations of this interface should be thread-safe for use with the polyhedral operators.


Method Index


o AddVertex(int&)
Adds a vertex to the surface.
o CastToTriMesh()
Casts a CATIPolySurface to a CATIPolyMesh.
o CastToTriMesh()
Casts a const CATIPolySurface to a const CATIPolyMesh.
o GetFacetIterator(CATIPolySurfaceFacetIterator*&)
Returns a facet iterator.
o GetNbFacets()
Returns the number of facets (Explicit).
o GetNbVertices()
Returns the number of vertices of the polyhedral surface.
o GetVertexIterator(CATIPolySurfaceVertexIterator*&)
Returns a vertex iterator (explicit).
o GetVertexNormalLayer(CATIPolySurfaceVertexNormalConstLayer*&)
Returns the vertex normal layer if any.
o GetVertexPositionLayer(CATIPolySurfaceVertexPositionConstLayer*&)
Returns the vertex position layer if any.

Methods


o AddVertex
public virtual AddVertex( v)
Adds a vertex to the surface.
Parameters:
v
The index of the added vertex.
Returns:
S_OK on success or E_FAIL or another error otherwise.
o CastToTriMesh
public virtual CastToTriMesh()
Casts a CATIPolySurface to a CATIPolyMesh.
Returns:
The cast as a CATIPolyMesh.
o CastToTriMesh
public virtual CastToTriMesh()
Casts a const CATIPolySurface to a const CATIPolyMesh.
Returns:
The cast as a const CATIPolyMesh.
o GetFacetIterator
public virtual GetFacetIterator( oIterator)
Returns a facet iterator.
Parameters:
oIterator
The output iterator. The returned instance must be released. (ref-counted.)
Returns:
S_OK on success and E_FAIL or another error otherwise.
o GetNbFacets
public virtual GetNbFacets()
Returns the number of facets (Explicit).
Returns:
The number of facets.
o GetNbVertices
public virtual GetNbVertices()
Returns the number of vertices of the polyhedral surface.
Returns:
The number of vertices of the discrete surface.
o GetVertexIterator
public virtual GetVertexIterator( oIterator)
Returns a vertex iterator (explicit).
Parameters:
oIterator
The output iterator. The returned instance must be released. (ref-counted.)
Returns:
S_OK on success or E_FAIL or another error otherwise.
o GetVertexNormalLayer
public virtual GetVertexNormalLayer( oLayer)
Returns the vertex normal layer if any.
Parameters:
oLayer
The layer that is returned. The returned layer must be released (ref-counted.)
Returns:
S_OK if a layer is successfully returned. S_FALSE if a layer is not available. E_FAIL if an error occurs.
o GetVertexPositionLayer
public virtual GetVertexPositionLayer( oLayer)
Returns the vertex position layer if any.
Parameters:
oLayer
The layer that is returned. The returned layer must be released (ref-counted.)
Returns:
S_OK if a layer is successfully returned. S_FALSE if a layer is not available. E_FAIL if an error occurs.

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

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