BaseMesh Class
Language: Visual Basic C# C++ JScript (Show All)
Manipulates and queries mesh objects and derived mesh objects.
Definition
Members Table
The following table lists the members exposed by the object. Click a tab on the left to choose the type of member you want to view.
Events
Event
Description
Disposing
Occurs when the Dispose method is called or when the BaseMesh object is finalized and collected by the garbage collector of the .NET common language runtime.
Methods
Method
Description
BaseMesh
Initializes a new instance of the BaseMesh class.
Clone
Clones, or copies, a mesh object.
ComputeNormals
Computes normals for each vertex in a mesh.
ConvertAdjacencyToPointReps
Converts mesh adjacency information to an array of point representatives.
ConvertPointRepsToAdjacency
Converts point representative data to mesh adjacency information.
Dispose
Immediately releases the unmanaged resources used by the BaseMesh object.
DrawSubset
Draws a subset of a mesh.
Equals
Returns a value that indicates whether the current instance is equal to a specified object.
Finalize
Allows the BaseMesh object to free resources before it is destroyed by the garbage collector.
GenerateAdjacency
Generates adjacency information based on mesh indices.
GetAttributeTable
Retrieves an attribute table for a mesh.
GetHashCode
Returns the hash code for the current instance.
GetObjectByValue
This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
LockIndexBuffer
Locks an index buffer and obtains the index buffer data.
LockVertexBuffer
Locks a vertex buffer and obtains a pointer to the vertex buffer memory.
op_Equality
Compares the current instance of a class to another instance to determine whether they are the same.
op_Inequality
Compares the current instance of a class to another instance to determine whether they are different.
raise_Disposing
Raises the Microsoft.DirectX.Direct3D.BaseMesh.Disposing event when called from within a derived class.
SetIndexBufferData
Sets index buffer data.
SetVertexBufferData
Sets vertex buffer data.
UnlockIndexBuffer
Unlocks an index buffer.
UnlockVertexBuffer
Unlocks a vertex buffer.
UpdateSemantics
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.
UpdateUnmanagedPointer
Updates the unmanaged pointer for this BaseMesh object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.
Properties
Property
Description
Declaration
Retrieves a declaration that describes the vertices in a mesh.
Device
Retrieves the device associated with a mesh.
Disposed
Gets a value that indicates whether the object is disposed.
IndexBuffer
Retrieves the data in an index buffer.
NumberAttributes
Retrieves the number of entries stored in an attribute table for a mesh.
NumberBytesPerVertex
Retrieves the number of bytes per vertex.
NumberFaces
Retrieves the number of faces in a mesh.
NumberVertices
Retrieves the number of vertices in a mesh.
Options
Retrieves the mesh options enabled for the current mesh at creation time.
UnmanagedComPointer
Returns the unmanaged Component Object Model (COM) ID3DXBaseMesh interface pointer.
VertexBuffer
Retrieves the vertex buffer of a mesh.
VertexFormat
Retrieves the vertex format that describes the contents of vertices.
Inheritance Hierarchy
Remarks
A mesh is an object made up of a set of polygonal faces. It defines a set of vertices and a set of faces. The faces are defined in terms of the vertices and normals of the mesh.
Class Information
Namespace
Microsoft.DirectX.Direct3D
Assembly
Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll)
Strong Name
Microsoft.DirectX.Direct3DX,
Version=1.0.900.0,
Culture=neutral,
PublicKeyToken=d3231b57b74a1492
See Also
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center