IFXVertexMap

The conversion of a model to IFXMeshGroup and IFXMesh structures may duplicate vertices to handle the multiple normals or texture coordinates at a particular original vertex. The IFXVertexMap interface maps an original vertex index to the IFXMesh index for IFXMeshGroup and the IFXMesh vertex index.

Interface Methods

Descripton

IFXVertexMap

Class constructor

~IFXVertexMap

Class destructor

GetNumMapEntries

Returns number of original vertices

GetNumVertexCopies

Returns number of copies of original vertices in the mesh

GetVertexCopy

Specifies the original vertex index and the copy number

AllocateMap

Used to build the vertex map

AllocateCopies

Used to copy vertices

AddVertex

Used to add vertices


IFXVertexMap::IFXVertexMap()

Class constructor.

Parameters:

None

Return Values:

None


IFXVertexMap::~IFXVertexMap()

Class destructor.

Parameters:

None

Return Values:

None


IFXVertexMap::GetNumMapEntries()

Returns number of original vertices.

Parameters:

None

Return Value:

None


IFXVertexMap::GetNumVertexCopies(U32 originalVertexIndex)

Returns how many copies of a particular original vertex there are in the Shockwave 3D§ mesh.

Parameters:

originalVertexIndex

Index number

Return Value:

None


IFXVertexMap::GetVertexCopy(U32 originalVertexIndex,U32 copyIndex,U32 *indexIFXMesh,U32 *indexIFXVertex);

Specifies the original vertex index and the copy number. Returns the corresponding IFXMesh index for IFXMeshGroup and the IFXMesh vertex index.

Parameters:

originalVertexIndex

Index number

copyIndex

Index number to be copied

indexIFXMesh

Pointer to the IFXMesh index number

indexIFXVertex

Pointer to the IFXVertex index number

Return Values:

None


IFXVertexMap::AllocateMap(U32 numOrigVertices)

These are used to build the map.

Parameters:

numOrigVertices

Number of original vertices

None

Return Values:

None


IFXVertexMap::AllocateCopies(U32 origVertexIndex, U32 numCopies)

These are used to build the map.

Parameters:

originalVertexIndex

Vertex index number

numCopies

Number of copies to be made

None

Return Values:

None


IFXVertexMap::AddVertex(U32 origVertexIndex, U32 indexIFXMesh, U32 indexIFXVertex)

These are used to build the map.

Parameters:

originalVertexIndex

Vertex index number

indexIFXMesh

Index number of the IFXMesh

indexIFXVertex

Index number of the IFXVertex

Return Values:

None

 

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.