mirror of https://github.com/CGAL/cgal
integrated changes from reviews
This commit is contained in:
parent
2d32b6dcfd
commit
093a105716
|
|
@ -213,7 +213,7 @@ struct Search_traits<Point, 3> : public CGAL::Search_traits_3<typename CGAL::Ker
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\ingroup PkgPointSetProcessing3Algorithms
|
\ingroup PkgPointSetProcessing3Algorithms
|
||||||
Performs poisson disk elimination with a desired output size. A greedy method that calculates a weight based on the
|
performs poisson disk elimination with a desired output size. A greedy method that calculates a weight based on the
|
||||||
neighborhood of each point and eliminates points until the output size is reached.
|
neighborhood of each point and eliminates points until the output size is reached.
|
||||||
|
|
||||||
For more details, please refer to \cgalCite{cgal:y-sefpdss}.
|
For more details, please refer to \cgalCite{cgal:y-sefpdss}.
|
||||||
|
|
@ -268,7 +268,7 @@ struct Search_traits<Point, 3> : public CGAL::Search_traits_3<typename CGAL::Ker
|
||||||
\cgalNamedParamsEnd
|
\cgalNamedParamsEnd
|
||||||
*/
|
*/
|
||||||
template<class PointRange, class OutputIterator, class NamedParameters = parameters::Default_named_parameters>
|
template<class PointRange, class OutputIterator, class NamedParameters = parameters::Default_named_parameters>
|
||||||
void poisson_eliminate(PointRange &points, std::size_t number_of_points, OutputIterator output, const NamedParameters& np = parameters::default_values()) {
|
void poisson_eliminate(const PointRange &points, std::size_t number_of_points, OutputIterator output, const NamedParameters& np = parameters::default_values()) {
|
||||||
using parameters::choose_parameter;
|
using parameters::choose_parameter;
|
||||||
using parameters::get_parameter;
|
using parameters::get_parameter;
|
||||||
|
|
||||||
|
|
@ -276,12 +276,12 @@ void poisson_eliminate(PointRange &points, std::size_t number_of_points, OutputI
|
||||||
return;
|
return;
|
||||||
|
|
||||||
using NP_helper = Point_set_processing_3_np_helper<PointRange, NamedParameters>;
|
using NP_helper = Point_set_processing_3_np_helper<PointRange, NamedParameters>;
|
||||||
using PointMap = typename NP_helper::Point_map;
|
using PointMap = typename NP_helper::Const_point_map;
|
||||||
using Point = typename boost::property_traits<PointMap>::value_type;
|
using Point = typename boost::property_traits<PointMap>::value_type;
|
||||||
using GeomTraits = typename NP_helper::Geom_traits;
|
using GeomTraits = typename NP_helper::Geom_traits;
|
||||||
using FT = typename GeomTraits::FT;
|
using FT = typename GeomTraits::FT;
|
||||||
using IPM = internal::Indexed_extended_point_map<PointRange, PointMap>;
|
using IPM = internal::Indexed_extended_point_map<PointRange, PointMap>;
|
||||||
PointMap point_map = NP_helper::get_point_map(points, np);
|
PointMap point_map = NP_helper::get_const_point_map(points, np);
|
||||||
|
|
||||||
const unsigned int ambient_dimension = CGAL::Ambient_dimension<Point>::value;
|
const unsigned int ambient_dimension = CGAL::Ambient_dimension<Point>::value;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue