From 4e497f1c1514f9e8e82fe55ea87eac0e1f9c262c Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Thu, 14 Dec 2017 14:18:41 +0100 Subject: [PATCH] Add deprecated constructor to Point_set_with_structure --- .../include/CGAL/structure_point_set.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Point_set_processing_3/include/CGAL/structure_point_set.h b/Point_set_processing_3/include/CGAL/structure_point_set.h index 79fde33403b..9c7a52ee8f5 100644 --- a/Point_set_processing_3/include/CGAL/structure_point_set.h +++ b/Point_set_processing_3/include/CGAL/structure_point_set.h @@ -193,7 +193,43 @@ public: const PlaneRange& planes, double epsilon, const NamedParameters& np) + { + init (points, planes, epsilon, np); + } + /// \cond SKIP_IN_MANUAL + // deprecated + template + CGAL_DEPRECATED_MSG("you are using the deprecated V1 API of CGAL::Point_set_with_structure(), please update your code") + Point_set_with_structure (const PointRange& points, + PointMap point_map, + NormalMap normal_map, + const PlaneRange& planes, + PlaneMap plane_map, + IndexMap index_map, + double epsilon, + double attraction_factor = 3.) + { + init (points, planes, epsilon, + CGAL::parameters::point_map (point_map). + normal_map (normal_map). + plane_map (plane_map). + plane_index_map (index_map). + attraction_factor (attraction_factor)); + } + + template + void init (const PointRange& points, + const PlaneRange& planes, + double epsilon, + const NamedParameters& np) { using boost::choose_param; @@ -248,6 +284,7 @@ public: run (epsilon, attraction_factor); clean (); } + /// \endcond std::size_t size () const { return m_points.size (); } std::pair operator[] (std::size_t i) const