pub fn compute_normals_from_mesh(vertices: &[f64], indices: &[u32]) -> Vec<f64>Expand description
Compute smooth normals from a triangle mesh.
vertices is a flat array of [x, y, z] values (length = 3 * num_vertices).
indices is a flat array of triangle vertex indices (length = 3 * num_triangles).
Returns a flat array of normals, same length as vertices.