...ImatiSTL provides both functions for local mesh repairing and methods for global remeshing. Local repairing is useful when the available data must remain exactly as it is in the input STL file, whereas global remeshing may fix even highly corrupted meshes at the cost of a small distortion in the resulting fixed mesh.