From fa20e12e55e7d65e21cca0df0b0183ea07fca56c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 10 Mar 2023 09:24:34 +0100 Subject: [PATCH] Add an accessor for Segment_with_ID_2 --- .../include/CGAL/Straight_skeleton_2/Straight_skeleton_aux.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Straight_skeleton_2/include/CGAL/Straight_skeleton_2/Straight_skeleton_aux.h b/Straight_skeleton_2/include/CGAL/Straight_skeleton_2/Straight_skeleton_aux.h index f7e26d01801..8e5bdfdd6d2 100644 --- a/Straight_skeleton_2/include/CGAL/Straight_skeleton_2/Straight_skeleton_aux.h +++ b/Straight_skeleton_2/include/CGAL/Straight_skeleton_2/Straight_skeleton_aux.h @@ -52,6 +52,8 @@ struct Segment_2_with_ID typedef typename K::Segment_2 Base; typedef typename K::Point_2 Point_2; + std::size_t id() const { return mID; } + public: Segment_2_with_ID() : Base(), mID(-1) { } Segment_2_with_ID(Base const& aS) : Base(aS), mID(-1) { }