Skip to contents

A cylinder along the z-axis with given radius and height.

Public fields

radius

Cylinder radius

height

Cylinder height

Methods

Inherited methods


Method new()

Create a Cylinder

Usage

Cylinder$new(
  radius = 1,
  height = 2,
  u_resolution = 32,
  v_resolution = 1,
  color = TEAL_D,
  show_caps = TRUE,
  ...
)

Arguments

radius

Cylinder radius

height

Cylinder height

u_resolution

Angular subdivisions

v_resolution

Height subdivisions

color

Surface color

show_caps

Whether to add top/bottom caps

...

Additional args


Method clone()

The objects of this class are cloneable with this method.

Usage

Cylinder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.