?/TD>
Microsoft DirectX 9.0

ID3DXPMesh::GetAdjacency Method


Returns the face adjacency array of the mesh.

Syntax

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 Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



See Also

ID3DXPMesh::GetMaxFaces


© 2002 Microsoft Corporation. All rights reserved.