Skip to content
brep-conformancegithub

torus

Constructors · api.md § torus · all operations

torus(frame: Frame, major: Length, minor: Length) -> Solid

Makes a ring lying round the frame's z axis: a tube of radius minor whose centre runs round a circle of radius major in the xy plane.

major > minor > 0 must hold. The result is the set of points where (√(u² + v²) − major)² + w² ≤ minor².

Example.

> {"cmd": "torus", "frame": {"origin": [0, 0, 0], "x": [1, 0, 0], "y": [0, 1, 0], "z": [0, 0, 1]},
   "major": 10, "minor": 2}
< {"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