From 056ce68477a70ad1f7bb1583f8f6c0f1cf2021a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 20 Dec 2019 09:06:55 +0100 Subject: [PATCH] handle "border" case hard to put in a test because it depends on the starting point of the iteration --- BGL/include/CGAL/boost/graph/selection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/selection.h b/BGL/include/CGAL/boost/graph/selection.h index d44c297a696..9775fda2863 100644 --- a/BGL/include/CGAL/boost/graph/selection.h +++ b/BGL/include/CGAL/boost/graph/selection.h @@ -588,7 +588,7 @@ void expand_face_selection_for_removal(const FaceRange& faces_to_be_deleted, next_around_vertex = opposite( next(hd, tm), tm); if (hd==start) break; } - if ( get(is_selected, face(next_around_vertex, tm) ) ) continue; //all incident faces will be removed + if ( is_border(next_around_vertex,tm) || get(is_selected, face(next_around_vertex, tm) ) ) continue; //all incident faces will be removed while( true ) { @@ -610,7 +610,7 @@ void expand_face_selection_for_removal(const FaceRange& faces_to_be_deleted, break; next_around_vertex = opposite( next(next_around_vertex, tm), tm); } - while( get(is_selected, face(next_around_vertex, tm) ) ); + while(is_border(next_around_vertex,tm) || get(is_selected, face(next_around_vertex, tm) ) ); if (next_around_vertex==start) break;