mirror of https://github.com/CGAL/cgal
Fix flip edges for 3-edges borders.
This commit is contained in:
parent
7180f20b7a
commit
44b8b2df02
|
|
@ -1163,7 +1163,8 @@ bool Scene_polyhedron_selection_item:: treat_selection(const std::set<fg_edge_de
|
||||||
//check preconditions
|
//check preconditions
|
||||||
if(boost::distance(CGAL::halfedges_around_face(halfedge(ed, *polyhedron()),*polyhedron())) == 3
|
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();
|
SMesh* mesh = polyhedron();
|
||||||
halfedge_descriptor h = halfedge(ed, *mesh);
|
halfedge_descriptor h = halfedge(ed, *mesh);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue