ID3DXBaseMesh::ConvertAdjacencyToPointReps

Converts mesh adjacency information to an array of point representatives.

HRESULT ConvertAdjacencyToPointReps(
  CONST DWORD* pAdjacency,
  DWORD* pPRep
);

Parameters

pAdjacency
[in] Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. The number of bytes in this array must be at least 3 * ID3DXBaseMesh::GetNumFaces * sizeof(DWORD).
pPRep
[in, out] Pointer to an array of one DWORD per vertex of the mesh that will be filled with point representative data.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Header: Declared in D3dx9mesh.h.