PatchMesh.TessellateAdaptive(Vector4,Int32,Int32,Mesh) Method (Microsoft.DirectX.Direct3D)
Performs adaptive tessellation based on the z-based adaptive tessellation criterion.
Definition
Visual Basic Public Sub TessellateAdaptive( _
ByVal trans As Vector4, _
ByVal maxTessellate As Integer, _
ByVal minTessellate As Integer, _
ByVal mesh As Mesh _
)C# public void TessellateAdaptive(
Vector4 trans,
int maxTessellate,
int minTessellate,
Mesh mesh
);C++ public:
void TessellateAdaptive(
Vector4 trans,
int maxTessellate,
int minTessellate,
Mesh^ mesh
);JScript public function TessellateAdaptive(
trans : Vector4,
maxTessellate : int,
minTessellate : int,
mesh : Mesh
);
Parameters
trans Microsoft.DirectX.Vector4
Specifies a 4-D vector (Vector4) that is dotted with the vertices to get the per-vertex adaptive tessellation amount. Each edge is tessellated to the average value of the tessellation levels for the two vertices it connects.maxTessellate System.Int32
Maximum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. The range of this integer value is between param_Int32_minTessellate and 32.minTessellate System.Int32
Minimum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. The range of this integer value is between 1 and param_Int32_maxTessellate.mesh Microsoft.DirectX.Direct3D.Mesh
Resulting tessellated mesh. For more information, see Mesh.
Remarks
This method performs most efficiently if the patch mesh is optimized using PatchMesh.Optimize.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.
.gif)