Converts a supplied point representatives array to mesh adjacency.

Note: This operation is included as part of GenerateAdjacencyAndPointReps where the pointrep data is also generated. These conversion functions are provided for cases where you already have a pointrep and need to convert to adjacency.

HRESULT ConvertPointRepsToAdjacency(
   _In_reads_(nFaces*3) const uint16_t* indices, _In_ size_t nFaces,
   _In_reads_(nVerts) const XMFLOAT3* positions, _In_ size_t nVerts, 
   _In_reads_opt_(nVerts) const uint32_t* pointRep,
   _Out_writes_(nFaces*3) uint32_t* adjacency );

HRESULT ConvertPointRepsToAdjacency(
   _In_reads_(nFaces*3) const uint32_t* indices, _In_ size_t nFaces,
   _In_reads_(nVerts) const XMFLOAT3* positions, _In_ size_t nVerts, 
   _In_reads_opt_(nVerts) const uint32_t* pointRep,
   _Out_writes_(nFaces*3) uint32_t* adjacency );

Parameters

If pointRep is nullptr, then the identity is assumed (i.e. pointRep[i] is i).

Remarks

These functions assume the triangular mesh description and pointreps are valid. See Mesh cleanup and validation

Last edited Jun 9, 2014 at 6:05 PM by walbourn, version 2