@equinor/videx-3d
    Preparing search index...

    Type Alias BoundsShape

    A bounds shape for distance-based level of detail: a bounding sphere, an axis-aligned bounding box (as [min, max]) or a single position. Consumed by the Bounds component and distanceToBounds.

    type BoundsShape = {
        box?: [Vec3, Vec3];
        position?: Vec3;
        sphere?: { center: Vec3; radius: number };
    }
    Index

    Properties

    box?: [Vec3, Vec3]

    Axis-aligned bounding box as [min, max]. Used when sphere is unset.

    position?: Vec3

    A single point. Lowest precedence.

    sphere?: { center: Vec3; radius: number }

    Bounding sphere. Highest precedence.