Skip to content
brep-conformancegithub

extrude

Constructors · api.md § extrude · all operations

extrude(frame: Frame, profile: Profile, height: Length) -> Solid

Pushes a flat profile straight out of its plane, like a part cut from plate. The profile lies in the frame's xy plane and is swept height along z.

height must be positive. The result is the set of points where (u, v) ∈ Ω and 0 ≤ w ≤ height: the profile drawn in the frame's xy plane, moved along z. The result's volume is A·height and its area is 2A + L·height.

Example.

> {"cmd": "extrude", "frame": {"origin": [0, 0, 0], "x": [1, 0, 0], "y": [0, 1, 0], "z": [0, 0, 1]},
   "profile": [[{"line": [[0, 0], [10, 0]]}, {"line": [[10, 0], [10, 10]]}, {"line": [[10, 10],
   [0, 10]]}, {"line": [[0, 10], [0, 0]]}]], "height": 5}
< {"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