Skip to main content

compute_vertex_normals

Function compute_vertex_normals 

Source
pub fn compute_vertex_normals(
    positions: &[f32],
    indices: &[u32],
) -> Result<Vec<f32>, JsError>
Expand description

Smooth, area-weighted per-vertex normals; same length as positions.