Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function projectMeshTo3D

    • Project a loaded mesh into display space for one view state.

      Parameters

      • data: LoadedMeshData
      • viewState: ViewState
      • normalDims: readonly number[] | undefined
      • doubleSided: boolean
      • backend: WasmModule

        WASM module or the TypeScript reference, already selected for this mesh's ndim by the caller through pickBackend. Both implement the two cull kernels; the TS one is also the production ndim > 16 backend, and pickBackend swaps the WHOLE module there — which is why both kernels must exist on WasmModule and in both backends.

      Returns ProjectedMeshData