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 GraphicsStream, _
    ByVal numSegs As Single, _
    ByVal quadraticInterpNormals As Boolean, _
    ByRef adjacencyOut As GraphicsStream _
) As Mesh
C# public static Mesh TessellateNPatches(
    Mesh mesh,
    GraphicsStream adjacencyIn,
    float numSegs,
    bool quadraticInterpNormals,
    out GraphicsStream adjacencyOut
);
Managed C++ public: static Mesh* TessellateNPatches(
    Mesh *mesh,
    GraphicsStream *adjacencyIn,
    float numSegs,
    bool quadraticInterpNormals,
    GraphicsStream **adjacencyOut
);
JScript .NET public static function TessellateNPatches(
    mesh : Mesh,
    adjacencyIn : GraphicsStream,
    numSegs : float,
    quadraticInterpNormals : boolean,
    adjacencyOut : GraphicsStream
) : Mesh;

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh. A Mesh object that represents the mesh to tessellate.
adjacencyIn Microsoft.DirectX.GraphicsStream. A GraphicsStream containing 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.
adjacencyOut Microsoft.DirectX.GraphicsStream. A GraphicsStream containing three Int32 Leave Site values per face that specify the three neighbors for each face in the output mesh.

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