PatchMesh.GetTessellateSize Method

Language:

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

Definition

Visual Basic 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
);
C++ public:
void GetTessellateSize(
    float tessLevel,
    int adaptive,
    [Out] intnumTriangles,
    [Out] intnumVertices
);
JScript 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.


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