Microsoft DirectX 8.0 (C++) |
Cleans a mesh, preparing it for simplification.
HRESULT D3DXCleanMesh( LPD3DXMESH pMeshIn, CONST DWORD* pAdjacency, LPD3DXMESH* ppMeshOut );
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL |
E_OUTOFMEMORY |
This method cleans the mesh by adding another vertex where two fans of triangles share the same vertex.
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.