Namespace: position

calcs.position

Functions leveraging JSCAD to get position data or move 2D/3D geometries.
Source:

Namespaces

rectangle

Methods

(static) findLongAxis(size)

Finds long axis of a coord set.
Parameters:
Name Type Description
size Array.<number> [x, y, z]
Source:
Returns:
axis with longest value (either "x", "y", or "z") or `null` if invalid

(static) getGeomCoords(geom)

Gets 3D bounding coordinates of a given geometry.
Parameters:
Name Type Description
geom object
Source:
Returns:
Bounding coords (right, left, back, front, top, bottom)

(static) measure(inputGeom)

Measures key info (boundingBox, dimensions).
Parameters:
Name Type Description
inputGeom object
Source:
Returns:
...