PatchMesh Class

Language:

Provides patch mesh functionality.

Definition

Visual Basic NotInheritable Public Class PatchMesh
    Inherits MarshalByRefObject
    Implements IDisposable
C# public sealed class PatchMesh : MarshalByRefObject, IDisposable
C++ public ref class PatchMesh sealed : MarshalByRefObject, IDisposable
JScript public final class PatchMesh extends MarshalByRefObject implements IDisposable

Members Table

Event Description
Disposing Occurs when the Dispose method is called or when the PatchMesh object is finalized and collected by the garbage collector of the .NET common language runtime.
Method Description
Clone Creates a new patch mesh with the specified vertex declaration.
static (Shared in Visual Basic) CreateNPatchMesh Creates an N-patch mesh from a triangle mesh.
Dispose Immediately releases the unmanaged resources used by the PatchMesh object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
Finalize Allows the PatchMesh object to free resources before it is destroyed by the garbage collector.
static (Shared in Visual Basic) FromX Loads a patch mesh from an XFileData object.
GenerateAdjacency Generates adjacency information based on mesh indices.
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.
GetTessellateSize Retrieves the size of the tessellated mesh, given a tessellation level.
LockAttributeBuffer Locks the attribute buffer and obtains its memory.
LockAttributeBufferArray Locks the attribute buffer and obtains its memory.
LockIndexBuffer Locks the index buffer.
LockVertexBuffer Locks the vertex buffer.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
Optimize Optimizes the patch mesh for efficient tessellation.
PatchMesh Creates a mesh from a control patch mesh.
raise_Disposing Raises the Microsoft.DirectX.Direct3D.PatchMesh.Disposing event when called from within a derived class.
SetIndexBufferData Sets index buffer data.
SetVertexBufferData Sets vertex buffer data.
Tessellate Performs uniform tessellation based on the tessellation level.
TessellateAdaptive Performs adaptive tessellation based on the z-based adaptive tessellation criterion.
UnlockAttributeBuffer Unlocks the attribute buffer.
UnlockIndexBuffer Unlocks the index buffer.
UnlockVertexBuffer Unlocks the vertex buffer.
UpdateUnmanagedPointer Updates the unmanaged pointer for this PatchMesh object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.
Validate Validates a patch mesh.
Property Description
ControlVerticesPerPatch Retrieves the number of control vertices per patch.
Declaration Retrieves the vertex declaration.
Device Retrieves the Device that created the mesh.
DisplacementParameter Retrieves or sets mesh geometry displacement parameters.
Disposed Gets a value that indicates whether the object is disposed.
IndexBuffer Retrieves the mesh index buffer.
NumberPatches Retrieves the number of patches in a mesh.
NumberVertices Retrieves the number of vertices for a mesh.
Options Retrieves a MeshOptions structure that contains information about the patch mesh.
PatchInformation Retrieves the attributes of the patch mesh.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) ID3DXPatchMesh interface pointer.
VertexBuffer Retrieves the mesh vertex buffer.

Inheritance Hierarchy

Object Leave Site
MarshalByRefObject Leave Site
PatchMesh

Remarks

A patch mesh is a mesh that consists of a series of patches.

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

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