Skip to content

ConvertPointRepsToAdjacency

Chuck Walbourn edited this page Jan 21, 2022 · 5 revisions
DirectXMesh

Converts a supplied point representatives array to mesh adjacency.

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(
   const uint16_t* indices, size_t nFaces, const XMFLOAT3* positions,
   size_t nVerts, const uint32_t* pointRep, uint32_t* adjacency );

HRESULT ConvertPointRepsToAdjacency(
   const uint32_t* indices, size_t nFaces, const XMFLOAT3* positions,
   size_t nVerts, const uint32_t* pointRep, 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 Validate

For Use

  • Universal Windows Platform apps
  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Windows 7 Service Pack 1
  • Xbox One
  • Xbox Series X|S
  • Windows Subsystem for Linux

For Development

  • Visual Studio 2022
  • Visual Studio 2019 (16.11)
  • clang/LLVM v12 - v16
  • GCC 9.4, 11.3
  • MinGW 12.2, 13.2
  • CMake 3.20

Related Projects

DirectX Tool Kit for DirectX 11

DirectX Tool Kit for DirectX 12

DirectXTex

DirectXMath

Tools

Test Suite

Content Exporter

DxCapsViewer

See also

DirectX Landing Page

Clone this wiki locally