Microsoft DirectX 9.0 SDK Update (October 2004)

PatchMesh.TessellateAdaptive Method

Language:

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

Performs adaptive tessellation based on the z-based adaptive tessellation criterion.

Definition

Visual Basic .NET Public Sub TessellateAdaptive( _
    ByVal trans As Vector4, _
    ByVal maxTessellate As Integer, _
    ByVal minTessellate As Integer, _
    ByVal mesh As Mesh _
)
C# public void TessellateAdaptive(
    Vector4 trans,
    int maxTessellate,
    int minTessellate,
    Mesh mesh
);
Managed C++ public: void TessellateAdaptive(
    Vector4 trans,
    int maxTessellate,
    int minTessellate,
    Mesh *mesh
);
JScript .NET public function TessellateAdaptive(
    trans : Vector4,
    maxTessellate : int,
    minTessellate : int,
    mesh : Mesh
);

Parameters

trans Microsoft.DirectX.Vector4. Specifies a 4-D vector (Vector4) that is dotted with the vertices to get the per-vertex adaptive tessellation amount. Each edge is tessellated to the average value of the tessellation levels for the two vertices it connects.
maxTessellate System.Int32. Maximum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. The range of this integer value is between param_Int32_minTessellate and 32.
minTessellate System.Int32. Minimum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. The range of this integer value is between 1 and param_Int32_maxTessellate.
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