Skip to main content

generate_box_mesh

Function generate_box_mesh 

Source
pub fn generate_box_mesh(
    half_extents: [f64; 3],
) -> (Vec<f64>, Vec<f64>, Vec<u32>)
Expand description

Generate a box (cuboid) mesh centered at the origin.

half_extents = [hx, hy, hz]. Returns (vertices, normals, indices).