Cylinder

constructor(position: Point = Point.ORIGIN, radius: Double = 1.0, height: Double = 1.0, vertices: Int = 20)

Parameters

position

The center of the base circle (default Point.ORIGIN)

radius

The radius of the circular cross-section (must be positive, default 1.0)

height

The extent along the z-axis (must be positive, default 1.0)

vertices

The number of sides used to approximate the circle (minimum 3, default 20). Higher values produce a smoother cylinder but generate more polygons.