InternalCreate a combined camera (orthographic and perspective).
canvas width.
canvas height.
distance from the lookAt point.
target (Vector3) to look at.
flag whether the initial camera should be orthographic.
Z or Y to define whether Z or Y direction is camera up.
Update camera dimensions when viewport size changes.
Distance used for orthographic frustum calculation.
New viewport width in pixels.
New viewport height in pixels.
Remove assets.
Get the current camera.
Camera object.
Get the current camera position.
camera position.
Get the current camera quaternion.
camera quaternion.
Get the current camera rotation.
camera rotation.
Get the visible area dimensions at the target plane.
The visible width and height.
Return current zoom value.
zoom value.
Set the lookAt point for the camera to the provided target.
Move the camera to a given preset.
can be "iso", "top", "bottom", "front", "rear", "left", "right"
Calculate projected size for orthographic camera.
View frustum size.
Viewer aspect ratio (width / height).
Width and height [w, h] for the orthographic camera.
Set camera position.
position as 3 dim Array [x,y,z] or as Vector3.
flag whether the position is a relative (e.g. [1,1,1] for iso) or absolute point.
Set camera quaternion.
quaternion as 4 dim Array or as Quaternion.
Setup the current camera.
flag whether the position is a relative (e.g. [1,1,1] for iso) or absolute point.
the camera position (relative or absolute).
the camera rotation expressed by a quaternion.
zoom value.
Set zoom value.
float zoom value.
Switch between orthographic and perspective camera.
true for orthographic camera, else perspective camera.
Recalculate camera_distance from a new bounding radius. Uses the same factor as the constructor so that zoom 1.0 frames the scene.
The new bounding radius (bb_radius).
Update the near/far clipping planes for both cameras.
The new bounding radius to base the clipping planes on.
Update current camera's projection matrix.
Manages orthographic and perspective cameras for the viewer.
Camera wraps both camera types and provides:
Coordinate Systems
Supports three modes via
upparameter:"Y": Y-up (Fusion 360 compatible)"Z": Z-up (FreeCAD, OnShape compatible)Legacy Z-up mode
This is an internal class used by Viewer