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

    Module data/point-loader/projection

    nD β†’ 3D projection for the points spatial-index loader.

    Two behaviors live here, extracted from data/points-spatial-index-loader.ts:

    • projectPointsTo3D β€” the single, WASM-accelerated Points projection (nDβ†’3D extraction + effective-radius via the WASM kernels), with optional accumulator-buffer write-through (zero-allocation) and effective-radius filtering. Points run on the main thread by design (memory-bandwidth-bound + zero-alloc accumulator); the former worker-dispatcher copy was deleted in W4b.
    • createEmptyPointsData β€” factory for the "no visible points" return.

    Both are pure with respect to the loader: the loader-side state (chunkIndex, effectiveRadiusConfig, accumulator, node attrs) is passed in via a small ProjectionContext, and the WASM backend is supplied as an argument (via getPointsBackend), so the helpers can be unit-tested without instantiating a full PointsSpatialIndexLoader.

    ProjectionTargetBuffers
    ProjectionContext
    createEmptyPointsData
    projectPointsTo3D