Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Return (or compute + cache) an extended tolerance array. Every extendDims entry's matching dimension index in the tolerance array is replaced with EXTEND_TO_ALL_TOLERANCE; everything else is copied through from baseTolerance unchanged.

      The cache key is the sorted, comma-joined extendDims set so order-permuted callers share the same cached array. Subsequent calls with the same set return the same array reference (callers must not mutate the result).

      Parameters

      • baseTolerance: readonly number[]

        Per-dim tolerance array to extend.

      • extendDims: readonly string[]

        Dimension names that should be set to "all".

      • dimensionMetadata: readonly { name?: string }[]

        The scene's dimensions, used to resolve names → indices.

      • cache: Map<string, number[]>

        Mutable cache shared across calls.

      Returns number[]