/// Fix the orientation of all faces in the mesh such that the orientation of each pair of neighbouring faces is aligned.
Fix the orientation of all faces in the mesh such that the orientation of each pair of neighbouring faces is aligned.
Fix the orientation of all faces in the mesh such that the orientation of each pair of neighbouring faces is aligned .
pub fn fix_orientation(&mut self)
    {
        let mut visited_faces = std::collections::HashMap::new();
        for face_id in self.face_iter() {
            self.find_faces_to_flip_orientation(face_id, &mut visited_faces, false);
        }
        for (face_id, should_flip) in visited_faces {
            if should_flip {
                self.flip_orientation_of_face(face_id)
            }
        }
    }
pub fn fix_orientation ( & mut self ) { let mut visited_faces = std :: collections :: HashMap :: new ( ) ; for face_id in self . face_iter ( ) { self . find_faces_to_flip_orientation ( face_id , & mut visited_faces , false ) ; } for ( face_id , should_flip ) in visited_faces { if should_flip { self . flip_orientation_of_face ( face_id ) } } }
Fix the orientation of all faces in the mesh such that the orientation of each pair of neighbouring faces is aligned.
Fix the orientation of all faces in the mesh such that the orientation of each pair of neighbouring faces is aligned .
&mut self