Skip to main content

sphere

Function sphere 

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

Create a UV sphere centered at the origin.

  • radius: sphere radius
  • segments: tessellation resolution (longitude = segments)
  • stacks: tessellation resolution (latitude = stacks)

Minimum useful value for segments is 3.