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. If the edge has no adjacent faces, the value is 0xffffffff. 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 D3dx9mesh.h.

See Also

ID3DXPMesh::GetMaxFaces