Cylinder

Cylinder

A 3D object representing a cylinder.

Constructor

new Cylinder(radialSamplesopt, radiusTopopt, radiusBottomopt, heightopt)

Parameters:
Name Type Attributes Default Description
radialSamples number <optional>
8

Number of slices

radiusTop number <optional>
0.5

Radius of the cylinder at the top.

radiusBottom number <optional>
radiusTop

Radius of the cylinder at the bottom. Defaults to radiusTop.

height number <optional>
1

Height

Methods

clone() → {Cylinder}

Returns a clone of this cylinder

rebuild() → {Cylinder}

Builds or rebuilds the mesh data.