From 74746e57eaf6cee96a7dfb6eda2f18a79bc04788 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Mon, 8 May 2023 17:26:35 +0300 Subject: [PATCH] Aded clear_outer_boundary() --- Polygon/include/CGAL/General_polygon_with_holes_2.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Polygon/include/CGAL/General_polygon_with_holes_2.h b/Polygon/include/CGAL/General_polygon_with_holes_2.h index b11e78788e2..ae37e05eba9 100644 --- a/Polygon/include/CGAL/General_polygon_with_holes_2.h +++ b/Polygon/include/CGAL/General_polygon_with_holes_2.h @@ -12,7 +12,8 @@ // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // -// Author(s) : Baruch Zukerman +// Author(s): Baruch Zukerman +// Efi Fogel #ifndef CGAL_GENERAL_POLYGON_WITH_HOLES_2_H #define CGAL_GENERAL_POLYGON_WITH_HOLES_2_H @@ -107,6 +108,8 @@ public: void erase_hole(Hole_iterator hit) { m_holes.erase(hit); } + void clear_outer_boundary() { m_pgn.clear(); } + void clear_holes() { m_holes.clear(); } bool has_holes() const { return (!m_holes.empty()); }