From 636dbb3abf88d569e3cbef0a56bba1abd3aba58e Mon Sep 17 00:00:00 2001 From: Iordan Iordanov Date: Mon, 4 Jun 2018 10:44:14 +0200 Subject: [PATCH] changed return type of 'remove()' to 'bool' to indicate if the vertex has been removed or not --- .../Periodic_4_hyperbolic_Delaunay_triangulation_2.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h b/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h index ca650af2e3a..d3792e95015 100644 --- a/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h +++ b/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h @@ -289,7 +289,7 @@ namespace CGAL { return dummy_points[i](); } - void remove(Vertex_handle v); + bool remove(Vertex_handle v); bool is_dummy_vertex(Vertex_handle vh) const { for (int i = 0; i < dummy_points.size(); i++) { @@ -517,7 +517,7 @@ insert(const Point &p, Face_handle hint, bool batch_insertion) { //------------------------------------------------------ template < class Gt, class Tds > -void +bool Periodic_4_hyperbolic_Delaunay_triangulation_2:: remove(Vertex_handle v) { @@ -649,8 +649,12 @@ remove(Vertex_handle v) { CGAL_triangulation_assertion(this->is_valid(true)); + return true; + } else { // is not removable - std::cout << " -> vertex cannot be removed!" << std::endl; + + return false; + } }