?/TD>
Microsoft DirectX 9.0

ID3DXSPMesh Interface


Applications use the methods of the ID3DXSPMesh interface to manipulate simplification mesh objects. A simplification mesh is used to simplify a given mesh to a lower number of faces.

ID3DXSPMesh Members

CloneMesh

Clones a mesh using a declarator.

CloneMeshFVF

Clones a mesh using a flexible vertex format (FVF) code.

ClonePMesh

Clones a progressive mesh using a declarator.

ClonePMeshFVF

Clones a progressive mesh using a FVF code.

GetDeclaration

Retrieves a declaration describing the vertices in the mesh.

GetDevice

Retrieves the device object associated with the simplification mesh.

GetFVF

Retrieves the FVF of the vertices in the simplification mesh.

GetMaxFaces

Retrieves the maximum number of faces that the simplification mesh supports.

GetMaxVertices

Retrieves the maximum number of vertices that the simplification mesh supports.

GetNumFaces

Retrieves the number of faces in the simplification mesh.

GetNumVertices

Retrieves the number of vertices in the simplification mesh.

GetOptions

Retrieves the mesh options enabled for this simplification mesh at creation time.

GetVertexAttributeWeights

Returns the per-vertex attribute weights used to create the ID3DXSPMesh object.

GetVertexWeights

Returns the per-vertex weights used to create the ID3DXSPMesh object.

ReduceFaces

Reduces the number of faces in a simplification mesh.

ReduceVertices

Reduces the number of vertices in a simplification mesh.

Remarks

The ID3DXSPMesh interface is obtained by calling the D3DXCreateSPMesh function.

The ID3DXSPMesh interface, like all Component Object Model (COM) interfaces, inherits the IUnknown interface.

The LPD3DXSPMESH type is defined as a pointer to the ID3DXSPMesh interface.

typedef struct ID3DXSPMesh *LPD3DXSPMESH;

Interface Information

Inherits fromIUnknown
Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

Mesh Functions


© 2002 Microsoft Corporation. All rights reserved.