PatchMesh.Clone Method |
Language: |
Creates a new patch mesh with the specified vertex declaration.
Visual Basic Public Function Clone( _
ByVal options As MeshFlags, _
ByVal decl() As VertexElement _
) As PatchMeshC# public PatchMesh Clone(
MeshFlags options,
VertexElement[] decl
);C++ public:
PatchMesh^ Clone(
MeshFlags options,
array<VertexElement>^ decl
);JScript public function Clone(
options : MeshFlags,
decl : VertexElement[]
) : PatchMesh;
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.
Microsoft.DirectX.Direct3D.PatchMesh
Cloned patch mesh.
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 Microsoft Direct3D could not allocate sufficient memory to complete the call.
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