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

    Module tests/helpers/geometry-commits

    One commit per geometry type, through SceneLoader's own commit methods.

    Several geometry-behaviour probes (tests/_conformance/geometry-behaviours.ts) need the same thing: a scene with one node of a given type, and a real commit of count elements into it, so they can observe what the commit did — the render request, the depth-sort registration, the visible count the monitor reads. Each type reaches the commit stage with a different staged payload; this module is the one place those payloads are built.

    Points, Lines and GSplats nodes are bare THREE.Mesh placeholders: their commits build the geometry themselves. A mesh commit writes INTO the node's existing indexed geometry, so the mesh node is a real createEmptyMeshNode and its payload a real processMeshData projection.

    SceneLoaderCommitInternals
    GeometryCommitAdapter
    GEOMETRY_COMMITS
    commitInternals
    makePointsData
    makeStagedLines
    makeStagedGSplats
    makeStagedMesh
    makeCommitScene