Mesh.Clean(CleanType,Mesh,Int32[],Int32,String) Method (Microsoft.DirectX.Direct3D)
Cleans a mesh, preparing it for simplification.
Definition
Visual Basic Public Shared Function Clean( _
ByVal cleanType As CleanType, _
ByVal mesh As Mesh, _
ByVal adjacency() As Integer, _
ByRef adjacencyOut As Integer, _
ByRef errorsAndWarnings As String _
) As MeshC# public static Mesh Clean(
CleanType cleanType,
Mesh mesh,
int[] adjacency,
out int adjacencyOut,
out string errorsAndWarnings
);C++ public:
static Mesh^ Clean(
CleanType cleanType,
Mesh^ mesh,
array<int>^ adjacency,
[Out] int% adjacencyOut,
[Out] String^% errorsAndWarnings
);JScript public static function Clean(
cleanType : CleanType,
mesh : Mesh,
adjacency : int[],
adjacencyOut : int,
errorsAndWarnings : String
) : Mesh;
Parameters
cleanType Microsoft.DirectX.Direct3D.CleanType
A flag from the CleanType enumeration that specifies the type of mesh cleaning to perform.mesh Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the mesh to clean.adjacency System.Int32[]
Array of three Int32 values per face that specify the three neighbors for each face in the mesh to be cleaned.adjacencyOut System.Int32[]
Array of three Int32 values per face that specify the three neighbors for each face in the output mesh.errorsAndWarnings System.String
A String that contains a list of errors and warnings that explain the problems found in the mesh.
Return Value
Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the returned cleaned mesh. If no cleaning is necessary, the returned mesh is the same as the one that was passed in.
Remarks
This method cleans the mesh by adding another vertex where two fans of triangles share the same vertex.
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.