Function Reference: solid.torus

drafting: S = solid.torus (R1, R2)

drafting: S = solid.torus (R1, R2, U)

A torus, the solid of a ring.

S = solid.torus (R1, R2) returns a solid.Shape whose tube of radius R2 circles the z axis at radius R1, centred on the origin in the xy plane: the shape of an O-ring, or of the groove one sits in.

R2 must be smaller than R1. A tube as wide as its circle or wider would pass through the axis and the solid would intersect itself.

S = solid.torus (R1, R2, U) centres it on the origin of the geom.UCS U, its tube circling the normal of U in the plane of U.

See also: solid.Shape, solid.sphere, geom.UCS

Source Code: solid.torus