Microsoft DirectX 8.1 (C++)

ID3DXBaseMesh::ConvertPointRepsToAdjacency

Converts point representative data to mesh adjacency information.

HRESULT ConvertPointRepsToAdjacency(
  CONST DWORD* pPRep,
  CONST DWORD* fAdjacency
);

Parameters

pPRep
[in] A pointer to an array of one DWORD per vertex of the mesh that contains point representative data.

This parameter is optional. Supplying a NULL value will cause this parameter to be interpreted as an "identity" array.

fAdjacency
[out] Pointer to an array of three DWORDs per triangle of the mesh that contains the returned adjacency information.

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 values.

D3DERR_INVALIDCALL
E_OUTOFMEMORY

Requirements

Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.

See Also

ID3DXBaseMesh::ConvertAdjacencyToPointReps