Skip to main content

sphere_surface

Function sphere_surface 

Source
pub fn sphere_surface(
    center: Vec3,
    radius: f32,
    theta_steps: usize,
    phi_steps: usize,
) -> (Vec<Vec3>, Vec<Vec3>)
Expand description

Generate surface points and normals for a sphere centered at center with given radius.