From 46ba764a8e7a5269918ebcd74c95c4d8e78f3fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 27 Jan 2023 18:10:01 +0100 Subject: [PATCH] Reorganise skeleton_HDS::halfedge model accessors --- .../CGAL/Straight_skeleton_halfedge_base_2.h | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Straight_skeleton_2/include/CGAL/Straight_skeleton_halfedge_base_2.h b/Straight_skeleton_2/include/CGAL/Straight_skeleton_halfedge_base_2.h index c627109c0b9..2b743a4ca2d 100644 --- a/Straight_skeleton_2/include/CGAL/Straight_skeleton_halfedge_base_2.h +++ b/Straight_skeleton_2/include/CGAL/Straight_skeleton_halfedge_base_2.h @@ -50,7 +50,27 @@ protected: public: + Halfedge_handle opposite() { return mOpp;} + Halfedge_const_handle opposite() const { return mOpp;} + Halfedge_handle next () { return mNxt;} + Halfedge_const_handle next () const { return mNxt;} + Halfedge_handle prev () { return mPrv; } + Halfedge_const_handle prev () const { return mPrv; } + Vertex_handle vertex () { return mV; } + Vertex_const_handle vertex () const { return mV; } + Face_handle face () { return mF; } + Face_const_handle face () const { return mF; } + + bool is_border() const { return mF == Face_handle();} + + void set_opposite( Halfedge_handle h) { mOpp = h; } + void set_next ( Halfedge_handle h) { mNxt = h; } + void set_prev ( Halfedge_handle h) { mPrv = h; } + void set_vertex ( Vertex_handle w) { mV = w; } + void set_face ( Face_handle g) { mF = g; } + int id() const { return mID ; } + void reset_id ( int aID ) { mID = aID ; } bool is_bisector() const { @@ -67,30 +87,10 @@ public: Halfedge_const_handle defining_contour_edge() const { return this->face()->halfedge() ; } Halfedge_handle defining_contour_edge() { return this->face()->halfedge() ; } - Halfedge_handle opposite() { return mOpp;} - Halfedge_const_handle opposite() const { return mOpp;} - Halfedge_handle next () { return mNxt;} - Halfedge_const_handle next () const { return mNxt;} - Halfedge_handle prev () { return mPrv; } - Halfedge_const_handle prev () const { return mPrv; } - Vertex_handle vertex () { return mV; } - Vertex_const_handle vertex () const { return mV; } - Face_handle face () { return mF; } - Face_const_handle face () const { return mF; } - + // @fixme this isn't documented in the `StraightSkeletonHalfedge_2` concept Sign slope() const { return mSlope ; } - - bool is_border() const { return mF == Face_handle();} - - void set_opposite( Halfedge_handle h) { mOpp = h; } - void set_next ( Halfedge_handle h) { mNxt = h; } - void set_prev ( Halfedge_handle h) { mPrv = h; } - void set_vertex ( Vertex_handle w) { mV = w; } - void set_face ( Face_handle g) { mF = g; } - void set_slope( Sign aSlope ) { mSlope = aSlope ; } - void reset_id ( int aID ) { mID = aID ; } private: