From b0af782dbb9d7bc9d49f739134513d44f3900e99 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 20 Jul 2016 10:05:02 +0200 Subject: [PATCH] Bugfix: use new bbox API --- .../CGAL/Optimal_transportation_reconstruction_2.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Optimal_transportation_reconstruction_2/include/CGAL/Optimal_transportation_reconstruction_2.h b/Optimal_transportation_reconstruction_2/include/CGAL/Optimal_transportation_reconstruction_2.h index 7a2a1014d7c..8d8e06ef9dd 100644 --- a/Optimal_transportation_reconstruction_2/include/CGAL/Optimal_transportation_reconstruction_2.h +++ b/Optimal_transportation_reconstruction_2/include/CGAL/Optimal_transportation_reconstruction_2.h @@ -390,7 +390,13 @@ public: point_pmap = point_map; mass_pmap = mass_map; clear(); - insert_loose_bbox(m_bbox_x, m_bbox_y, 2 * m_bbox_size); + Property_map_to_unary_function get_point(point_pmap); + + Bbox_2 bbox = bbox_2( + boost::make_transform_iterator(samples_start,get_point), + boost::make_transform_iterator(samples_beyond,get_point)); + + insert_loose_bbox(bbox); init(vertices_start, vertices_beyond); std::vector m_samples;