Interface CameraViewpointJSONInterface

The representation of an export camera parameters to be used in export2D / exportSVG.


3D Rendering

interface CameraViewpointJSONInterface {
    dvector: [number, number, number];
    isperspective: boolean;
    location: [number, number, number];
    rmax: number;
    rmin: number;
    rvector: [number, number, number];
    scenefrontvector: [number, number, number];
    sceneupvector: [number, number, number];
    umax: number;
    umin: number;
    uvector: [number, number, number];
}

Properties

dvector: [number, number, number]

The directional vector of the camera.

isperspective: boolean

Tells if the output is a perspective camera.

location: [number, number, number]

The location of the camera.

rmax: number

The normalized rmax value of the camera.

This is the value of the intersection of the right plane of the view frustum with the near plane. The bottom right point Pbr is equal to : Pbr = umin * uvector + rmax * rvector + dvector.

rmax = rmax_cur / dmin.

rmin: number

The normalized rmin value of the camera (usually equal to -rmax).

This is the value of the intersection of the left plane of the view frustum with the near plane. The top left point Ptl is equal to : Ptl = umax * uvector + rmin * rvector + dvector.

rmax = rmax_cur / dmin.

rvector: [number, number, number]

The right vector of the camera.

scenefrontvector: [number, number, number]

The front vector of the scene.

sceneupvector: [number, number, number]

The up vector of the scene.

umax: number

The normalized umax value of the camera.

This is the value of the intersection of the up plane of the view frustum with the near plane. The top right point Ptr is equal to : Ptr = umax * uvector + rmax * rvector + dvector.

umax = umax_cur / dmin.

umin: number

The normalized umin value of the camera (usually equal to -umax).

This is the value of the intersection of the bottom plane of the view frustum with the near plane. The bottom left point Pbl is equal to : Pbl = umin * uvector + rmin * rvector + dvector.

umin = umin_cur / dmin.

uvector: [number, number, number]

The up vector of the camera.