mirror of https://github.com/CGAL/cgal
Add an accessor for Segment_with_ID_2
This commit is contained in:
parent
780f0ab9e4
commit
fa20e12e55
|
|
@ -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) { }
|
||||
|
|
|
|||
Loading…
Reference in New Issue