Implements camera control operations for the 3D viewer

Implements

Constructors

Methods

  • Frames all vims in the viewer to fit within the camera view

    Parameters

    • blendTime: number = ...

      Duration of the camera animation in seconds (defaults to 0.5)

    Returns Promise<Segment>

    Promise that resolves when the framing animation is complete

  • Frames a specific bounding box in the viewer

    Parameters

    • box: Box3

      The 3D bounding box to frame in the camera view

    • blendTime: number = ...

      Duration of the camera animation in seconds (defaults to 0.5)

    Returns Promise<Segment>

  • Frames specific nodes of a Vim model in the camera view

    Parameters

    • vim: Core.Ultra.Vim

      The Vim model containing the nodes to frame

    • nodes: "all" | number[]

      Array of node indices to frame, or 'all' to frame the entire model

    • blendTime: number = ...

      Duration of the camera animation in seconds (defaults to 0.5)

    Returns Promise<Segment>

    Promise that resolves when the framing animation is complete

  • Restores the camera to its last tracked position

    Parameters

    • blendTime: number = ...

      Duration of the camera animation in seconds

    Returns void