Microsoft DirectX 9.0 SDK Update (October 2004)

Mesh.TessellateNPatches Method

Language:

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

Tessellates the given mesh using the N-patch tessellation scheme.

Definition

Visual Basic .NET Public Shared Function TessellateNPatches( _
    ByVal mesh As Mesh, _
    ByVal adjacencyIn() As Integer, _
    ByVal numSegs As Single, _
    ByVal quadraticInterpNormals As Boolean _
) As Mesh
C# public static Mesh TessellateNPatches(
    Mesh mesh,
    int[] adjacencyIn,
    float numSegs,
    bool quadraticInterpNormals
);
Managed C++ public: static Mesh* TessellateNPatches(
    Mesh *mesh,
    int adjacencyIn __gc[],
    float numSegs,
    bool quadraticInterpNormals
);
JScript .NET public static function TessellateNPatches(
    mesh : Mesh,
    adjacencyIn : int[],
    numSegs : float,
    quadraticInterpNormals : boolean
) : Mesh;

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh. A Mesh object that represents the mesh to tessellate.
adjacencyIn System.Int32[]. Array of three Int32 Leave Site values per face that specify the three neighbors for each face in the source mesh.
numSegs System.Single. Number of segments per edge to tessellate.
quadraticInterpNormals System.Boolean. Set to true if quadratic interpolation for normals is used. Set to false if linear interpolation is used.

Return Value

Microsoft.DirectX.Direct3D.Mesh . A Mesh object that represents the returned tessellated mesh.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.
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