Methods
View
setViewpoint
sets the viewpoint the viewpoint simulates the position of a camera looking at the scene example usage named viewpoint const namedviewpoint = "front"; viewer3d setviewpoint(namedviewpoint); orthogonal viewpoint const orthogonalviewpoint = { type "orthogonal", location { x 0, y 0, z 0, }, }; viewer3d setviewpoint(orthogonalviewpoint); perspective viewpoint const perspectiveviewpoint = { type "perspective", location { x 0, y 0, z 0, }, }; viewer3d setviewpoint(perspectiveviewpoint); parameters viewpoint the viewpoint to set type required string or object yes named viewpoint valid values are home front back left right top bottom orthogonal viewpoint name type required description aspectratio number no aspect ratio of the camera direction vector3 docid\ kewrhktc8iq2hlt48srfq no direction of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq yes location of the camera type string yes value must be orthogonal up vector3 docid\ kewrhktc8iq2hlt48srfq no normalized vector describing the camera orientation viewtoworldscale number no the scale factor between the camera and the scene perspective viewpoint name type required description aspectratio number no aspect ratio of the camera direction vector3 docid\ kewrhktc8iq2hlt48srfq no direction of the camera fov number no field of view of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq yes location of the camera type string yes value must be perspective up vector3 docid\ kewrhktc8iq2hlt48srfq no normalized vector describing the camera orientation