Fixing Non-manifold Meshes