Skip to content
Shapemetry

Model - cameras[]

Every method of the cameras[] lane. Each step of a cameras[] entry returns a camera, and the lane's entries are addressed by the identity schema/lanes.ts declares for it.

MethodDescriptionArgTypeDefaultMeaning
cameraCamera — A named camera — reference it from a view3d head's camera arg by key. Set fov OR height, never both: fov projects through an angle (perspective), height through a box (orthographic). NOT product.positionpoint[1000, 1000, 1000]Eye position [x,y,z] mm.
targetpoint[0, 0, 0]Look-at point [x,y,z] mm. Must differ from Position — equal points name no view direction.
upvectorRoll reference [x,y,z]. Default [0,0,1] (level with the world).
fovnumber45VERTICAL field of view in DEGREES — makes this camera perspective. Exclusive with Height. No aspect ratio: the consumer's viewport or sheet cell supplies it.
heightlengthWorld height visible — makes this camera orthographic. Exclusive with FOV. The left/right/top/bottom edges are derived from it and the consumer's aspect.
Last updated: 📖 1 min readEdit on GitHub