When exporting the surface mesh, we want a mesh where exactly two faces meets at each edge. This means we have to eliminate crossings when exporting.