Merge branch 'Mesh_3-fix_surface_holes_4.5-jtournoi' into releases/CGAL-4.5-branch

fix the use of "revert_move" that was producing holes on the mesh surface

infinite cells don't need to be backuped, but the data of facets that belong to
the convex hull should be restored (from inside the mesh)
This commit is contained in:
Jane Tournois 2014-10-06 12:23:23 +02:00
commit 602c33c897
1 changed files with 10 additions and 2 deletions

View File

@ -1477,8 +1477,16 @@ private:
c->set_facet_surface_center(i, facet_surface_center_[old_i]); c->set_facet_surface_center(i, facet_surface_center_[old_i]);
c->set_facet_surface_center_index(i, surface_center_index_table_[old_i]); c->set_facet_surface_center_index(i, surface_center_index_table_[old_i]);
//here we don't need to update mirror_facet because it's been either
//backuped, or unchanged //we need to update mirror_facet when the i-th neighbor is
// an infinite cell
Cell_handle c2 = c->neighbor(i);
if(c3t3.triangulation().is_infinite(c2))
{
const int i2 = c2->index(c);
c2->set_facet_surface_center(i2, facet_surface_center_[old_i]);
c2->set_facet_surface_center_index(i2, surface_center_index_table_[old_i]);
}
} }
} }