Selva Compute API Reference - v1.1.2
    Preparing search index...

    Function initThree

    • Initializes a comprehensive Three.js environment with enhanced render quality and flexible configuration.

      Parameters

      • canvas: HTMLCanvasElement

        The HTML canvas element to render the scene on.

      • Optionaloptions: ThreeInitializerOptions

        Configuration options for the Three.js environment.

      Returns {
          camera: PerspectiveCamera;
          clearSelection: () => void;
          controls: OrbitControls;
          dispose: () => void;
          fitToView: () => void;
          renderer: WebGLRenderer;
          resize: () => void;
          scene: Scene;
      }

      An object containing the scene, camera, controls, renderer, and utility methods.