Skip to main content

cylinder

Function cylinder 

Source
pub fn cylinder<T: Number>(radius: T, height: T, segments: usize) -> Csg<T>
Expand description

Create a cylinder with base at the origin, axis along Y.

  • radius: cylinder radius
  • height: total height (base at y=0, top at y=height)
  • segments: number of sides around the circumference