Copyright © 2021 by K4.org
  (v.0.48.124)

A Torus is a body of revolution formed by sweeping circular profile (the 'minor' circle) around a major circular path.

This mixes in BoxMixin so it can be positioned by the box that contains it.

Note that partial torii have 'open' ends and are not 'solid'.

Index

Rules

angle

angle: Number

The angle in radians of the arc along the major circle. The angles are measured from the +X axis, like an Arc. A partial torus always starts at the zero angle and proceeds counter-clockwise to a full circle. Note that this is the only parameter that takes radians instead of degrees for an angle. You can easily convert by calling R.radians(<value_in_degrees>).

Flags : Cached, Parameter (Note this is uncached)

Expression : Math.PI * 2

facetResolution

facetResolution: Integer

Number of facets per 360 degrees

Flags : Cached, Parameter (Note this is uncached)

Expression : 32

height

height: Number

Override of the BoxMixin parameter.

Flags : Cached (Note this is uncached)

Expression : this.minorRadius * 2

length

length: Number

Override of the BoxMixin parameter.

Flags : Cached (Note this is uncached)

Expression : this.majorRadius * 2

majorRadius

majorRadius: Number

The radius of the major circle.

Flags : Cached, Parameter (Note this is uncached)

Expression : 1

minorRadius

minorRadius: Number

The radius of the minor circle.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.majorRadius/3

volume

volume: Number

The volume of the torus.

Flags : Cached (Note this is uncached)

Expression : (Math.PI * this.minorRadius**2) * (this.angle * this.majorRadius)

width

width: Number

Override of the BoxMixin parameter.

Flags : Cached (Note this is uncached)

Expression : this.majorRadius * 2