ncollide3d::procedural

Function unit_sphere

Source
pub fn unit_sphere<N>(
    ntheta_subdiv: u32,
    nphi_subdiv: u32,
    generate_uvs: bool,
) -> TriMesh<N>
where N: RealField + Copy,
Expand description

Generates a UV sphere centered at the origin and with a unit diameter.