Mesh.TessellateNPatches Method |
Language: |
Tessellates the given mesh using the N-patch tessellation scheme.
Visual Basic 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 MeshC# public static Mesh TessellateNPatches(
Mesh mesh,
GraphicsStream adjacencyIn,
float numSegs,
bool quadraticInterpNormals,
out GraphicsStream adjacencyOut
);C++ public:
static Mesh^ TessellateNPatches(
Mesh^ mesh,
GraphicsStream^ adjacencyIn,
float numSegs,
bool quadraticInterpNormals,
[Out] GraphicsStream^% adjacencyOut
);JScript public static function TessellateNPatches(
mesh : Mesh,
adjacencyIn : GraphicsStream,
numSegs : float,
quadraticInterpNormals : boolean,
adjacencyOut : GraphicsStream
) : Mesh;
mesh Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the mesh to tessellate.adjacencyIn Microsoft.DirectX.GraphicsStream
A GraphicsStream containing three Int32 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 values per face that specify the three neighbors for each face in the output mesh.
Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the returned tessellated mesh.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. InvalidDataException The data is invalid. OutOfMemoryException 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