Microsoft DirectX 9.0 SDK Update (October 2004)

PatchMesh.Tessellate Method

Language:

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 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