From 01434e194e2d2fb85c92b16c468afb5440d232ba Mon Sep 17 00:00:00 2001 From: Eric Berberich Date: Sun, 21 Oct 2012 12:41:35 +0000 Subject: [PATCH] added is_on_outer_ccb --- .../include/CGAL/Arr_dcel_base.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_dcel_base.h b/Arrangement_on_surface_2/include/CGAL/Arr_dcel_base.h index be23e898b97..9ca21d78aa0 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_dcel_base.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_dcel_base.h @@ -528,12 +528,13 @@ public: this->p_v = v; } - /*! Check whether the halfedge lies on the boundary of an inner CCB. */ - bool is_on_inner_ccb () const + /*! Check whether the halfedge lies on the boundary of an outer CCB. */ + bool is_on_outer_ccb () const { - return (_is_lsb_set (this->p_comp)); + return (!_is_lsb_set (this->p_comp)); } + /*! * Get an incident outer CCB (const version). * \pre The edge does not lie on an inner CCB. @@ -561,6 +562,12 @@ public: this->p_comp = oc; } + /*! Check whether the halfedge lies on the boundary of an inner CCB. */ + bool is_on_inner_ccb () const + { + return (_is_lsb_set (this->p_comp)); + } + /*! * Get an incident inner CCB (const version). * \pre The edge lies on an inner CCB.