Microsoft DirectX 9.0 SDK Update (October 2004)

PatchMesh.Clone Method

Language:

Note: This documentation is preliminary and is subject to change.

Creates a new patch mesh with the specified vertex declaration.

Definition

Visual Basic .NET Public Function Clone( _
    ByVal options As MeshFlags, _
    ByVal decl() As VertexElement _
) As PatchMesh
C# public PatchMesh Clone(
    MeshFlags options,
    VertexElement[] decl
);
Managed C++ public: PatchMesh* Clone(
    MeshFlags options,
    VertexElement decl __gc[]
);
JScript .NET public function Clone(
    options : MeshFlags,
    decl : VertexElement[]
) : PatchMesh;

Parameters

options Microsoft.DirectX.Direct3D.MeshFlags. Mesh creation options, indicated through one or more MeshFlags flags (excepting the Simplify* and Optimize* flags).
decl Microsoft.DirectX.Direct3D.VertexElement[]. Array of VertexElement structures that specify the vertex format for the vertices in the output mesh.

Return Value

Microsoft.DirectX.Direct3D.PatchMesh . Cloned patch mesh.

Remarks

The PatchMesh.Clone method converts the vertex buffer to the new vertex declaration. Entries in the vertex declaration that are new to the original mesh are set to 0. If the current mesh has adjacency, the new mesh will have it also.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center