All Frameworks  Class Hierarchy  This Framework  Indexes   

PolyhedralInterfaces Interface CATPolyMeshSerializer

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


interface CATPolyMeshSerializer



Method Index


o DoIncludePolygonSize(CATBoolean)
Sets a parameter to include the polygon size (3 for a CATIPolyMesh) during the serialization of the triangles.
o GetSizeOfTriangleBuffer()
Returns the required size of the buffer for serialization of the triangles.
o GetSizeOfVertexNormalBuffer()
Returns the required size of the buffer for serialization of the vertex normal layer.
o GetSizeOfVertexPositionBuffer()
Returns the required size of the buffer for serialization of the vertex position layer.
o SerializeSurfaceVertices(CATIPolySurfaceVertexLine&,int*)
Serializes the surface vertices of a CATIPolySurfaceVertexLine.
o SerializeTriangles(int*)
Serializes the triangle vertices into an integer buffer.
o SerializeVertexNormalLayer(float*)
Serializes the vertex normal layer into a float buffer.
o SerializeVertexPositionLayer(float*)
Serializes the vertex coordinate layer into a float buffer.

Methods


o DoIncludePolygonSize
public DoIncludePolygonSize( iDoIncludePolygonSize)
Sets a parameter to include the polygon size (3 for a CATIPolyMesh) during the serialization of the triangles. When this flag is set to TRUE, the triangles are serialized as follows:
3 t0v0 t0v1 t0v2 3 t1v0 t1v1 t1v2 ... 3 tnv0 tnv1 tnv2.
Otherwise, the triangles are serialized as follows:
t0v0 t0v1 t0v2 t1v0 t1v1 t1v2 ... tnv0 tnv1 tnv2.
By default this flag is set to FALSE.
o GetSizeOfTriangleBuffer
public GetSizeOfTriangleBuffer()
Returns the required size of the buffer for serialization of the triangles. The size of the buffer is equal to 3 * CATIPolySurface::GetNbTriangles ().
o GetSizeOfVertexNormalBuffer
public GetSizeOfVertexNormalBuffer()
Returns the required size of the buffer for serialization of the vertex normal layer. The method may return 0 if no normal layer is available.
o GetSizeOfVertexPositionBuffer
public GetSizeOfVertexPositionBuffer()
Returns the required size of the buffer for serialization of the vertex position layer.
o SerializeSurfaceVertices
public SerializeSurfaceVertices( const iSurfaceVertexLine,
ioIndexBuffer)
Serializes the surface vertices of a CATIPolySurfaceVertexLine. The buffer must be pre-allocated and its size should be at least iSurfaceVertexLine.GetNbVertices ().
Parameters:
iSurfaceVertexLine
The input curve whose surface vertices are serialized.
ioIndexBuffer
The buffer for the surface vertices defining the curve. The buffer is filled with the surface vertices after their mapping into a compact vertex array ranging from 0 to CATIPolyMesh::GetNbVertices () - 1 inclusive.
o SerializeTriangles
public SerializeTriangles( ioTriangleVertices)
Serializes the triangle vertices into an integer buffer. The buffer must be pre-allocated and its size should be at least GetSizeOfTriangleBuffer (). The buffer is filled with the vertex indices after their mapping into a compact vertex array ranging from 0 to CATIPolyMesh::GetNbVertices () - 1 inclusive.
o SerializeVertexNormalLayer
public SerializeVertexNormalLayer( ioVertexNormalBuffer)
Serializes the vertex normal layer into a float buffer. The buffer must be pre-allocated and its size should be at least GetSizeOfVertexNormalBuffer ().
o SerializeVertexPositionLayer
public SerializeVertexPositionLayer( ioVertexPositionBuffer)
Serializes the vertex coordinate layer into a float buffer. The buffer must be pre-allocated and its size should be at least GetSizeOfVertexPositionBuffer ().

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

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