Clean up and repair meshes