Skip to main content

cone

Function cone 

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

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

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