Methods
View
getViewpoint
returns the viewpoint the viewpoint simulates the position of a camera looking at the scene example usage const viewpoint = viewer3d getviewpoint(); return value the viewpoint type object orthogonal viewpoint name type description aspectratio number aspect ratio of the scene direction vector3 docid\ kewrhktc8iq2hlt48srfq direction of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is orthogonal up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation viewtoworldscale number the scale factor between the camera and the scene perspective viewpoint name type description aspectratio number aspect ratio of the scene direction vector3 docid\ kewrhktc8iq2hlt48srfq direction of the camera fov number field of view of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is perspective up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation example { type "perspective", location { x 0, y 0, z 0, }, direction { x 0, y 1, z 0, }, up { x 0, y 0, z 1, }, fov 60, aspectratio 1, };