From ace0238a7c7a7f7b7b80133067bdda437c60f162 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 17 May 2016 15:37:41 +0200 Subject: [PATCH] Bugfix: deactivate corners if bad intersection --- Point_set_processing_3/include/CGAL/structure_point_set.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Point_set_processing_3/include/CGAL/structure_point_set.h b/Point_set_processing_3/include/CGAL/structure_point_set.h index 27032d66c57..2db684569cc 100644 --- a/Point_set_processing_3/include/CGAL/structure_point_set.h +++ b/Point_set_processing_3/include/CGAL/structure_point_set.h @@ -1119,6 +1119,7 @@ private: #ifdef CGAL_PSP3_VERBOSE std::cerr << "Warning: bad plane/plane intersection" << std::endl; #endif + m_corners[i].active = false; continue; } else @@ -1129,6 +1130,7 @@ private: #ifdef CGAL_PSP3_VERBOSE std::cerr << "Warning: bad plane/line intersection" << std::endl; #endif + m_corners[i].active = false; continue; } } @@ -1184,7 +1186,7 @@ private: continue; int count_plane_number=3; - + for (std::size_t kb = k + 1; kb < m_corners.size(); ++ kb) { if (!(m_corners[kb].active))