Fix flip edges for 3-edges borders.

This commit is contained in:
Maxime Gimeno 2019-07-31 15:46:14 +02:00
parent 7180f20b7a
commit 44b8b2df02
1 changed files with 2 additions and 1 deletions

View File

@ -1163,7 +1163,8 @@ bool Scene_polyhedron_selection_item:: treat_selection(const std::set<fg_edge_de
//check preconditions
if(boost::distance(CGAL::halfedges_around_face(halfedge(ed, *polyhedron()),*polyhedron())) == 3
&&
boost::distance(CGAL::halfedges_around_face(opposite(halfedge(ed, *polyhedron()),*polyhedron()),*polyhedron())) == 3)
boost::distance(CGAL::halfedges_around_face(opposite(halfedge(ed, *polyhedron()),*polyhedron()),*polyhedron())) == 3
&& !CGAL::is_border(ed, *polyhedron()))
{
SMesh* mesh = polyhedron();
halfedge_descriptor h = halfedge(ed, *mesh);