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

    Lazily-computed, invalidatable cache of the 3D bounds / bounding sphere / near-cull margin derived from the scene's position_bounds metadata, projected to the current display dimensions.

    Index
    _bounds: BoundingBox | null = null
    _sphere: BoundingSphere | null = null
    _nearCull: number = 0.1
    • Compute the cache from the scene metadata if not already computed. Idempotent: after a successful hit subsequent calls are O(1) until invalidate() is called.

      If no position_bounds metadata is found in the scene graph, the cache remains empty and getBounds() / getSphere() return null. There is no negative caching, so a miss re-walks the whole scene graph on every call until metadata appears.

      Parameters

      • scene: Scene

      Returns void