Skip to content
brep-conformancegithub

cone

Constructors · api.md § cone · all operations

cone(frame: Frame, bottom: Length, top: Length, height: Length) -> Solid

Makes a cone or truncated cone that stands on the frame's xy plane round the frame's z axis. Its radius goes from bottom at the origin to top at height.

height must be positive. bottom and top must each be at least zero, and must not both be zero. A zero radius is an apex. The result is the set of points where √(u² + v²) ≤ bottom + (top − bottom)·w/height and 0 ≤ w ≤ height.

Example.

> {"cmd": "cone", "frame": {"origin": [0, 0, 0], "x": [1, 0, 0], "y": [0, 1, 0], "z": [0, 0, 1]},
   "bottom": 5, "top": 2, "height": 10}
< {"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