PatchMesh.Tessellate Method
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Performs uniform tessellation based on the tessellation level.
Definition
Visual Basic .NET
Public Sub Tessellate ( _ ByVal tessLevel As Single , _ ByVal mesh As Mesh _ )
C#
public void Tessellate ( float tessLevel , Mesh mesh );
Managed C++
public: void Tessellate ( float tessLevel , Mesh *mesh );
JScript .NET
public function Tessellate ( tessLevel : float , mesh : Mesh );
Parameters
tessLevel
System.Single . Tessellation level. This is the number of vertices introduced between existing vertices. The range of this floating-point parameter is between 0 and 32.
mesh
Microsoft.DirectX.Direct3D.Mesh . Resulting tessellated mesh. For more information, see Mesh .
Remarks
This method performs most efficiently if the patch mesh is optimized using PatchMesh.Optimize .
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.
© 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