This commit is contained in:
Sven Oesau 2024-02-26 15:08:58 +01:00
parent aec58185bd
commit a628773d0a
1 changed files with 6 additions and 4 deletions

View File

@ -668,8 +668,9 @@ public:
Sphere query_sphere(query, (std::numeric_limits<FT>::max)()); Sphere query_sphere(query, (std::numeric_limits<FT>::max)());
Orthtrees::nearest_k_neighbors_in_radius(*this, query_sphere, k, boost::make_function_output_iterator Orthtrees::nearest_k_neighbors_in_radius(*this, query_sphere, k, boost::make_function_output_iterator
([&](const Traits::Node_data_element index) ([&](const typename Traits::Node_data_element index) {
{*output++ = get(m_traits.m_point_map, index); })); *output++ = get(m_traits.m_point_map, index);
}));
return output; return output;
} }
@ -681,8 +682,9 @@ public:
Orthtrees::nearest_k_neighbors_in_radius(*this, query_sphere, Orthtrees::nearest_k_neighbors_in_radius(*this, query_sphere,
(std::numeric_limits<std::size_t>::max)(), boost::make_function_output_iterator (std::numeric_limits<std::size_t>::max)(), boost::make_function_output_iterator
([&](const Traits::Node_data_element index) ([&](const typename Traits::Node_data_element index) {
{*output++ = get(m_traits.m_point_map, index); })); *output++ = get(m_traits.m_point_map, index);
}));
return output; return output;
} }