diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h index f2e47b41549..8e48f735158 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h @@ -1436,6 +1436,15 @@ public: /*! Flip the segment (swap its source and target). */ Arr_segment_2 flip() const; + + /*! Create a bounding box for the segment. + */ + Bbox_2 bbox() const + { + Kernel kernel; + auto construct_bbox = kernel.construct_bbox_2_object(); + return construct_bbox(this->m_ps) + construct_bbox(this->m_pt); + } }; //! \brief constructs default.