Selva Compute API Reference - v2.1.0
    Preparing search index...

    Function updateScene

    • Updates the scene with the given meshes and camera settings. If initialPositionSet is false, it positions the camera and sets the controls target based on the bounding boxes of the meshes.

      Parameters

      • scene: Scene

        The THREE.Scene object to update.

      • meshes: Object3D<Object3DEventMap>[]

        An array of THREE.Mesh objects to add to the scene.

      • camera: PerspectiveCamera

        The THREE.PerspectiveCamera object to position.

      • controls: OrbitControls

        The OrbitControls object to update.

      • initialPositionSet: boolean

        A boolean indicating whether the initial position of the camera and controls have been set.

      Returns void