Skip to content
brep-conformancegithub

box

Constructors · api.md § box · all operations

box(frame: Frame, size: Length[3]) -> Solid

Makes a rectangular block with one corner at the frame's origin and its edges along the frame's axes, not centred on the origin.

Each of size = (a, b, c) must be positive. The result is the set of points where 0 ≤ u ≤ a, 0 ≤ v ≤ b and 0 ≤ w ≤ c.

Example.

> {"cmd": "box", "frame": {"origin": [0, 0, 0], "x": [1, 0, 0], "y": [0, 1, 0], "z": [0, 0, 1]},
   "size": [10, 20, 30]}
< {"ok": 1}
FunctionFieldsReturns
boxframe, sizeSolid
cylinderframe, radius, heightSolid
sphereframe, radiusSolid
torusframe, major, minorSolid
coneframe, bottom, top, heightSolid
extrudeframe, profile, heightSolid
revolveframe, profile, angleSolid
screwframe, profile, rise, angleSolid
loftframe, profile, scale, height, topSolid
loft_throughframe, profiles, heightsSolid
sweepframe, profile, pathSolid
sweep_pathframe, profile, path, twistSolid
slabframe, size, knots_u, knots_v, heightsSolid