pub fn calculate_smooth_normals(positions: &VectorData, vertex_indices: &[u32]) -> Vec<[f32; 3]> {
    let normals = geometry_tools::vectors::calculate_smooth_normals(
        &positions.to_glam_vec3a(),
        vertex_indices,
    );

    normals.iter().map(|t| t.to_array()).collect()
}
// TODO: Add tests for these?
/// Calculates smooth per-vertex normals by by averaging over the vertices in each face.
/// See [geometry_tools::vectors::calculate_smooth_normals](geometry_tools::vectors::calculate_smooth_normals).
Add tests for these.
Calculates smooth per-vertex normals by by averaging over the vertices in each face.
Add tests for these . Calculates smooth per - vertex normals by by averaging over the vertices in each face .
pub fn calculate_smooth_normals(positions: &VectorData, vertex_indices: &[u32]) -> Vec<[f32; 3]> {
    let normals = geometry_tools::vectors::calculate_smooth_normals(
        &positions.to_glam_vec3a(),
        vertex_indices,
    );
    normals.iter().map(|t| t.to_array()).collect()
}
pub fn calculate_smooth_normals ( positions : & VectorData , vertex_indices : & [ u32 ] ) -> Vec < [ f32 ; 3 ] > { let normals = geometry_tools :: vectors :: calculate_smooth_normals ( & positions . to_glam_vec3a ( ) , vertex_indices , ) ; normals . iter ( ) . map ( | t | t . to_array ( ) ) . collect ( ) }
TODO: Add tests for these?
TODO : Add tests for these?
positions
&VectorData
vertex_indices
&[u32]
positions
&VectorData
vertex_indices
&[u32]