compute_smooth_normals

Function compute_smooth_normals 

Source
pub fn compute_smooth_normals(
    points: &[DVec3],
    triangle_indices: &[u32],
) -> Vec<DVec3>
Expand description

Compute smooth vertex normals from a triangle mesh.

Each face normal is weighted by the angle at the vertex before accumulation. The result is normalized per vertex. Degenerate triangles are skipped.