ID3DXPMesh::GetAdjacency
Returns the face adjacency array of the mesh.
HRESULT GetAdjacency(
DWORD* pAdjacency
);
Parameters
- pAdjacency
- [out] Pointer to the returned face adjacency array of the mesh. The face adjacency is stored as an array of arrays. The innermost array is three indices of adjacent triangles, and the outer array is one set of face adjacency per triangle in the mesh. The size of the adjacency array is the maximum number of faces multiplied by 3.
Return Values
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
Requirements
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.
See Also
ID3DXPMesh::GetMaxFaces