Microsoft DirectX 9.0 SDK Update (October 2004)

PatchMesh.GetTessellateSize Method

Language:

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

Retrieves the size of the tessellated mesh, given a tessellation level.

Definition

Visual Basic .NET Public Sub GetTessellateSize( _
    ByVal tessLevel As Single, _
    ByVal adaptive As Integer, _
    ByRef numTriangles As Integer, _
    ByRef numVertices As Integer _
)
C# public void GetTessellateSize(
    float tessLevel,
    int adaptive,
    out int numTriangles,
    out int numVertices
);
Managed C++ public: void GetTessellateSize(
    float tessLevel,
    int adaptive,
    int *numTriangles,
    int *numVertices
);
JScript .NET public function GetTessellateSize(
    tessLevel : float,
    adaptive : int,
    numTriangles : int,
    numVertices : int
);

Parameters

tessLevel System.Single. Tessellation level.
adaptive System.Int32. Value that specifies adaptive tessellation. For adaptive tessellation, set this parameter to -1 and set param_Single_tessLevel to the maximum tessellation value. This results in the maximum mesh size necessary for adaptive tessellation. To specify no tessellation, set this parameter to 0.
numTriangles System.Int32. Number of triangles generated by the tessellated mesh.
numVertices System.Int32. Number of vertices generated by the tessellated mesh.

Remarks

This method assumes uniform tessellation.

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