ThreePresenter API Documentation - v0.1.2
    Preparing search index...

    Function calculateSceneBoundingBox

    • Calculate the bounding box for an array of objects

      Parameters

      • objects: Object3D<Object3DEventMap>[]

        Array of Three.js objects

      Returns Box3

      Combined bounding box containing all objects

      const bbox = calculateSceneBoundingBox([model1, model2, model3]);
      const size = bbox.getSize(new THREE.Vector3());
      console.log(`Scene dimensions: ${size.x} x ${size.y} x ${size.z}`);