![]() |
![]() |
![]() |
Mesh.Clean Method |
Language: |
Cleans a mesh, preparing it for simplification.
Visual Basic Public Shared Function Clean( _
ByVal cleanType As CleanType, _
ByVal mesh As Mesh, _
ByVal adjacency() As Integer, _
ByRef adjacencyOut As Integer _
) As MeshC# public static Mesh Clean(
CleanType cleanType,
Mesh mesh,
int[] adjacency,
out int adjacencyOut
);C++ public:
static Mesh^ Clean(
CleanType cleanType,
Mesh^ mesh,
array<int>^ adjacency,
[Out] int% adjacencyOut
);JScript public static function Clean(
cleanType : CleanType,
mesh : Mesh,
adjacency : int[],
adjacencyOut : int
) : Mesh;
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 Int32values per face that specify the three neighbors for each face in the mesh to be cleaned.
adjacencyOut System.Int32[]
Array of three Int32values 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 cleaned mesh. If no cleaning is necessary, the returned mesh is the same as the one that was passed in.
This method cleans the mesh by adding another vertex where two fans of triangles share the same vertex.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. 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