Export (0) Print
Expand All

ID3DXPMesh

Bb174099.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb174099.XDK_CHM_BANNER_right(en-us,VS.85).jpg

NOTE: The ID3DXPMesh and ID3DXSPMesh interfaces are now obsolete and will be removed in a future release.

ID3DXPMesh

Applications use the methods of the ID3DXPMesh interface to manipulate progressive mesh objects. A progressive mesh enables progressive refinement of the mesh object.

ID3DXBaseMesh
   ID3DXMesh
   ID3DXPMesh

ID3DXPMesh Members

MethodDescription
ID3DXPMesh::ClonePMeshClones a progressive mesh using a declarator.
ID3DXPMesh::ClonePMeshFVFClones a progressive mesh using a flexible vertex format (FVF) code.
ID3DXPMesh::GenerateVertexHistoryGenerates an immediate ancestor for each vertex when it is removed by a vertex split. Allows generation of a geomorph.
ID3DXPMesh::GetAdjacencyReturns the face adjacency array of the mesh.
ID3DXPMesh::GetMaxFacesRetrieves the maximum number of faces that the progressive mesh supports.
ID3DXPMesh::GetMaxVerticesRetrieves the maximum number of vertices that the progressive mesh supports.
ID3DXPMesh::GetMinFacesRetrieves the minimum number of faces that the progressive mesh supports.
ID3DXPMesh::GetMinVerticesRetrieves the minimum number of vertices that the progressive mesh supports.
ID3DXPMesh::OptimizeGenerates an output mesh with reordered faces and vertices to optimize performance.
ID3DXPMesh::OptimizeBaseLODOptimizes the base level of detail (LOD) part of an ID3DXPMesh object.
ID3DXPMesh::SaveSaves the progressive mesh to the specified stream object.
ID3DXPMesh::SetNumFacesSets the current level of detail to as close to the specified number of faces as possible.
ID3DXPMesh::SetNumVerticesSets the current level of detail to as close to the specified number of vertices as possible.
ID3DXPMesh::TrimByFacesModifies the minimum and maximum level of detail (LOD) of an ID3DXPMesh object.
ID3DXPMesh::TrimByVerticesModifies the minimum and maximum level of detail (LOD) of an ID3DXPMesh object.

Remarks

To obtain the ID3DXPMesh interface, call the D3DXGeneratePMesh function. Or, create a progressive mesh with D3DXCreatePMeshFromStream.

This interface inherits additional functionality from the ID3DXBaseMesh interface.

The LPD3DXPMESH type is defined as a pointer to the ID3DXPMesh interface, as shown below.

typedef struct ID3DXPMesh *LPD3DXPMESH;

See Also

Mesh Functions

Requirements

Header: Declared in D3DX9Mesh.h.

Library: Use D3dx9.lib.

Show:
© 2015 Microsoft