Mesh.TessellateNPatches(Mesh,GraphicsStream,Single,Boolean) Method (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic Public Shared Function TessellateNPatches( _
    ByVal mesh As Mesh, _
    ByVal adjacencyIn As GraphicsStream, _
    ByVal numSegs As Single, _
    ByVal quadraticInterpNormals As Boolean _
) As Mesh
C# public static Mesh TessellateNPatches(
    Mesh mesh,
    GraphicsStream adjacencyIn,
    float numSegs,
    bool quadraticInterpNormals
);
C++ public:
static MeshTessellateNPatches(
    Meshmesh,
    GraphicsStreamadjacencyIn,
    float numSegs,
    bool quadraticInterpNormals
);
JScript public static function TessellateNPatches(
    mesh : Mesh,
    adjacencyIn : GraphicsStream,
    numSegs : float,
    quadraticInterpNormals : boolean
) : Mesh;

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the mesh to tessellate.
adjacencyIn Microsoft.DirectX.GraphicsStream
A GraphicsStream containing three Int32Leave 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.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.