Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    Index
    pointBuffers: Map<number, PooledBuffer[]> = ...

    — pool-bucketed reusable point geometries.

    • Best-fit adoption from the free buckets, else a fresh allocation. Extracted from acquireGeometry so the grow path can wrap it (and the preceding release) in the OOM re-claim try/catch above.

      Parameters

      • nodeId: string
      • pointCount: number

      Returns InstancedBufferGeometry

    • Undo a failed grow (see the OOM re-claim comment in acquireGeometry): restore the buffer released at the start of the grow as the node's active entry, so the geometry the mesh still renders is neither adoptable from the free pool nor orphaned.

      Two sub-cases:

      • A replacement entry was already installed for the node before the throw (fresh allocation succeeded, then the post-allocation byte sweep threw): dispose it — it was never handed to the caller.
      • The released buffer is found in a free bucket: splice it out and re-activate it. If the release-time sweep disposed it, it is in no bucket — nothing to restore (the caller re-throws either way).

      Parameters

      Returns void

    • Dispose a replacement buffer installed before a late throw (never handed to the caller). Guarded: a throwing dispose listener must not mask the original acquire error nor undo the reinstatement above.

      Parameters

      Returns void

    • Parameters

      • geometry: InstancedBufferGeometry
      • data: LoadedPointsData
      • count: number
      • Optionaloptions: { preserveOrdering?: boolean; repairFromCount?: number; fromInstance?: number }

      Returns void