Skip to main content

uv_cone

Function uv_cone 

Source
pub fn uv_cone(
    radius: f32,
    half_height: f32,
    slices: usize,
) -> (Vec<[f32; 3]>, Vec<[f32; 2]>, Vec<[u8; 4]>, Vec<u32>)
Expand description

A cone pointing up the y axis: an apex ring collapsed to a point on top, a flat base cap below.