diff --git a/Point_set_processing_3/include/CGAL/IO/read_ply_points.h b/Point_set_processing_3/include/CGAL/IO/read_ply_points.h index 8ac4e0aef20..379232208ec 100644 --- a/Point_set_processing_3/include/CGAL/IO/read_ply_points.h +++ b/Point_set_processing_3/include/CGAL/IO/read_ply_points.h @@ -722,8 +722,8 @@ namespace internal { /// \endcond -/* - \ingroup PkgPointSetProcessing3IOPly +/** + \ingroup PkgPointSetProcessingIOPly Reads user-selected points properties from a .ply stream (ASCII or binary). diff --git a/Point_set_processing_3/include/CGAL/IO/write_ply_points.h b/Point_set_processing_3/include/CGAL/IO/write_ply_points.h index 2bbd1c23491..67d37953275 100644 --- a/Point_set_processing_3/include/CGAL/IO/write_ply_points.h +++ b/Point_set_processing_3/include/CGAL/IO/write_ply_points.h @@ -355,7 +355,8 @@ namespace internal { \cgalRequiresCPP11 \tparam PointRange is a model of `ConstRange`. The value type of - its iterator is the key type of the named parameter `point_map`. + its iterator is the key type of the `PropertyMap` objects provided + within the `PropertyHandler` parameter. \tparam PropertyHandler handlers to recover properties. \return `true` on success. diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h index 893ec4724fa..52fe7e4a57d 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h @@ -81,17 +81,19 @@ triangle_grid_sampling( const typename Kernel::Point_3& p0, } #if defined(CGAL_LINKED_WITH_TBB) -template +template struct Distance_computation{ + typedef typename PointRange::const_iterator::value_type Point_3; + const AABB_tree& tree; - const std::vector& sample_points; + const PointRange& sample_points; Point_3 initial_hint; tbb::atomic* distance; Distance_computation( const AABB_tree& tree, const Point_3& p, - const std::vector& sample_points, + const PointRange& sample_points, tbb::atomic* d) : tree(tree) , sample_points(sample_points) @@ -106,9 +108,9 @@ struct Distance_computation{ double hdist = 0; for( std::size_t i = range.begin(); i != range.end(); ++i) { - hint = tree.closest_point(sample_points[i], hint); + hint = tree.closest_point(*(sample_points.begin() + i), hint); typename Kernel_traits::Kernel::Compute_squared_distance_3 squared_distance; - double d = to_double(CGAL::approximate_sqrt( squared_distance(hint,sample_points[i]) )); + double d = to_double(CGAL::approximate_sqrt( squared_distance(hint,*(sample_points.begin() + i)) )); if (d>hdist) hdist=d; } @@ -139,7 +141,7 @@ double approximate_Hausdorff_distance_impl( { tbb::atomic distance; distance=0; - Distance_computation f(tree, hint, sample_points, &distance); + Distance_computation f(tree, hint, sample_points, &distance); tbb::parallel_for(tbb::blocked_range(0, sample_points.size()), f); return distance; } @@ -661,7 +663,7 @@ double approximate_symmetric_Hausdorff_distance( * \ingroup PMP_distance_grp * returns the distance to `tm` of the point from `points` * that is the furthest from `tm`. - * @tparam PointRange a range of `Point_3`, model of `Range`. + * @tparam PointRange a range of `Point_3`, model of `Range`. Its iterator type is `RandomAccessIterator`. * @tparam TriangleMesh a model of the concept `FaceListGraph` * @tparam NamedParameters a sequence of \ref pmp_namedparameters "Named Parameters" * @param points the range of points of interest