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

A standard right circular cylinder. This mixes in BoxMixin so it can be positioned like a Block. Note that by setting a different topRadius, truncated Cones can be created.

Index

Rules

diameter

diameter: Number

A convenience output.

Flags : Cached (Note this is uncached)

Expression : this.radius*2

length

length: Number

Override of the BoxMixin parameter. See also the note at width

Flags : Cached (Note this is uncached)

Expression : this.diameter

radius

radius: Number

The primary radius of the cylinder.

Flags : Cached, Parameter (Note this is uncached)

Expression : 1

topRadius

topRadius: Number

The radius at the top of the cylinder.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.radius

volume

volume: Number

The volume of the cylinder.

Flags : Cached (Note this is uncached)

Expression : (Math.PI/3) * (this.radius**2 + this.radius*this.topRadius + this.topRadius**2) * this.height

width

width: Number

Override of the BoxMixin parameter. Note that if the topRadius is larger than radius the resulting object will not fit in the BoxMixin volume.

Flags : Cached (Note this is uncached)

Expression : this.diameter