Skip to content
brep-conformancegithub

cylinder

Constructors · api.md § cylinder · all operations

cylinder(frame: Frame, radius: Length, height: Length) -> Solid

Makes a round bar standing on the frame's xy plane. Its axis runs up z from the origin.

radius and height must both be positive. The result is the set of points where u² + v² ≤ radius² and 0 ≤ w ≤ height.

Example.

> {"cmd": "cylinder", "frame": {"origin": [0, 0, 0], "x": [1, 0, 0], "y": [0, 1, 0],
   "z": [0, 0, 1]}, "radius": 5, "height": 20}
< {"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