Aded clear_outer_boundary()

This commit is contained in:
Efi Fogel 2023-05-08 17:26:35 +03:00
parent 1217504e23
commit 74746e57ea
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,8 @@
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
// //
// //
// Author(s) : Baruch Zukerman <baruchzu@post.tau.ac.il> // Author(s): Baruch Zukerman <baruchzu@post.tau.ac.il>
// Efi Fogel <efifogel@gmail.com>
#ifndef CGAL_GENERAL_POLYGON_WITH_HOLES_2_H #ifndef CGAL_GENERAL_POLYGON_WITH_HOLES_2_H
#define 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 erase_hole(Hole_iterator hit) { m_holes.erase(hit); }
void clear_outer_boundary() { m_pgn.clear(); }
void clear_holes() { m_holes.clear(); } void clear_holes() { m_holes.clear(); }
bool has_holes() const { return (!m_holes.empty()); } bool has_holes() const { return (!m_holes.empty()); }