ID3DXBaseMesh interface

Applications use the methods of the ID3DXBaseMesh interface to manipulate and query mesh and progressive mesh objects.

Members

The ID3DXBaseMesh interface inherits from the IUnknown interface. ID3DXBaseMesh also has these types of members:

Methods

The ID3DXBaseMesh interface has these methods.

Method Description
CloneMesh Clones a mesh using a declarator.
CloneMeshFVF Clones a mesh using a flexible vertex format (FVF) code.
ConvertAdjacencyToPointReps Converts mesh adjacency information to an array of point representatives.
ConvertPointRepsToAdjacency Converts point representative data to mesh adjacency information.
DrawSubset Draws a subset of a mesh.
GenerateAdjacency Generate a list of mesh edges, as well as a list of faces that share each edge.
GetAttributeTable Retrieves either an attribute table for a mesh, or the number of entries stored in an attribute table for a mesh.
GetDeclaration Retrieves a declaration describing the vertices in the mesh.
GetDevice Retrieves the device associated with the mesh.
GetFVF Gets the fixed function vertex value.
GetIndexBuffer Retrieves the data in an index buffer.
GetNumBytesPerVertex Gets the number of bytes per vertex.
GetNumFaces Retrieves the number of faces in the mesh.
GetNumVertices Retrieves the number of vertices in the mesh.
GetOptions Retrieves the mesh options enabled for this mesh at creation time.
GetVertexBuffer Retrieves the vertex buffer associated with the mesh.
LockIndexBuffer Locks an index buffer and obtains a pointer to the index buffer memory.
LockVertexBuffer Locks a vertex buffer and obtains a pointer to the vertex buffer memory.
UnlockIndexBuffer Unlocks an index buffer.
UnlockVertexBuffer Unlocks a vertex buffer.
UpdateSemantics This method allows the user to change the mesh declaration without changing the data layout of the vertex buffer. The call is valid only if the old and new declaration formats have the same vertex size.

 

Remarks

A mesh is an object made up of a set of polygonal faces. A mesh defines a set of vertices and a set of faces (the faces are defined in terms of the vertices and normals of the mesh).

The LPD3DXBASEMESH type is defined as a pointer to the ID3DXBaseMesh interface.

typedef struct ID3DXBaseMesh *LPD3DXBASEMESH;

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

D3DX Interfaces