• Get the axis-aligned bounding box of a list of objects.

    Parameters

    • objects: Object3D<Object3DEventMap>[]

      The objects to get the bounding box from.

    • ignore: undefined | ((obj: Object3D<Object3DEventMap>) => boolean | void) | (undefined | null | Object3D<Object3DEventMap>)[] = undefined

      Objects to ignore when calculating the bounding box. Objects that are invisible (gizmos, helpers, etc.) are excluded by default.

    • layers: undefined | null | Layers = undefined

      The layers to include. Typically the main camera's layers.

    • result: undefined | Box3 = undefined

      The result box to store the bounding box in. Returns a new box if not passed in.

    Returns Box3