diff --git a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/K_neighbor_query.h b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/K_neighbor_query.h index 4a0588a7715..15899022799 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/K_neighbor_query.h +++ b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/K_neighbor_query.h @@ -239,6 +239,10 @@ namespace Point_set { const Index_to_point_map& index_to_point_map() const { return m_index_to_point_map; } + + void set_k(const std::size_t k) { + m_number_of_neighbors = k; + } /// \endcond private: diff --git a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/Sphere_neighbor_query.h b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/Sphere_neighbor_query.h index 8535c4fbc94..ebe3b677f31 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/Sphere_neighbor_query.h +++ b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing_on_point_set/Sphere_neighbor_query.h @@ -232,6 +232,10 @@ namespace Point_set { const Index_to_point_map& index_to_point_map() const { return m_index_to_point_map; } + + void set_sphere_radius(const FT sphere_radius) { + m_sphere_radius = sphere_radius; + } /// \endcond private: