Methods
Object
calculateSectionPlanesForBoundingBox
returns the requested section planes of the specified bounding box usage const boundingbox = { max { x 10, y 10, z 0, }, min { x 0, y 0, z 0, }, }; const objectids = \["object 1", "object 2"]; const planenames = \["left", "right"]; const planes = viewer3d calculatesectionplanesforboundingbox(boundingbox, planenames); parameters boundingbox bounding box used to calculate section planes type required box3 yes planenames list of named planes type required array\[string] yes named plane valid values are top bottom left right front back return value list of planes type array\[object] plane name type description location vector3 location of the plane direction vector3 direction of the plane example \[ { location { x 0, y 0, z 0, }, direction { x 1, y 0, z 0, }, }, { location { x 10, y 10, z 0, }, direction { x 1, y 0, z 0, }, }, ];