ID3DXPMesh
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
Method | Description |
---|---|
ID3DXPMesh::ClonePMesh | Clones a progressive mesh using a declarator. |
ID3DXPMesh::ClonePMeshFVF | Clones a progressive mesh using a flexible vertex format (FVF) code. |
ID3DXPMesh::GenerateVertexHistory | Generates an immediate ancestor for each vertex when it is removed by a vertex split. Allows generation of a geomorph. |
ID3DXPMesh::GetAdjacency | Returns the face adjacency array of the mesh. |
ID3DXPMesh::GetMaxFaces | Retrieves the maximum number of faces that the progressive mesh supports. |
ID3DXPMesh::GetMaxVertices | Retrieves the maximum number of vertices that the progressive mesh supports. |
ID3DXPMesh::GetMinFaces | Retrieves the minimum number of faces that the progressive mesh supports. |
ID3DXPMesh::GetMinVertices | Retrieves the minimum number of vertices that the progressive mesh supports. |
ID3DXPMesh::Optimize | Generates an output mesh with reordered faces and vertices to optimize performance. |
ID3DXPMesh::OptimizeBaseLOD | Optimizes the base level of detail (LOD) part of an ID3DXPMesh object. |
ID3DXPMesh::Save | Saves the progressive mesh to the specified stream object. |
ID3DXPMesh::SetNumFaces | Sets the current level of detail to as close to the specified number of faces as possible. |
ID3DXPMesh::SetNumVertices | Sets the current level of detail to as close to the specified number of vertices as possible. |
ID3DXPMesh::TrimByFaces | Modifies the minimum and maximum level of detail (LOD) of an ID3DXPMesh object. |
ID3DXPMesh::TrimByVertices | Modifies 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
Requirements
Header: Declared in D3DX9Mesh.h.
Library: Use D3dx9.lib.