Skip to contents

A torus (donut shape) defined by major and minor radii.

Public fields

major_radius

Distance from center to tube center

minor_radius

Tube radius

Methods

Public methods

Inherited methods


Method new()

Create a Torus

Usage

Torus$new(
  major_radius = 2,
  minor_radius = 0.5,
  u_resolution = 40,
  v_resolution = 24,
  color = GREEN_D,
  ...
)

Arguments

major_radius

Ring radius

minor_radius

Tube radius

u_resolution

Subdivisions around the ring

v_resolution

Subdivisions around the tube

color

Surface color

...

Additional args


Method clone()

The objects of this class are cloneable with this method.

Usage

Torus$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.