diff --git a/AABB_tree/include/CGAL/AABB_traits_3.h b/AABB_tree/include/CGAL/AABB_traits_3.h index 93d502283cc..2e7799ad0a2 100644 --- a/AABB_tree/include/CGAL/AABB_traits_3.h +++ b/AABB_tree/include/CGAL/AABB_traits_3.h @@ -407,7 +407,6 @@ public: CGAL::SMALLER : CGAL::LARGER; } - // The following functions seem unused...? template CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const Point& bound) const { diff --git a/AABB_tree/include/CGAL/AABB_tree/internal/AABB_statically_filtered_traits_3.h b/AABB_tree/include/CGAL/AABB_tree/internal/AABB_statically_filtered_traits_3.h index cc5560a99eb..7f89aa0e893 100644 --- a/AABB_tree/include/CGAL/AABB_tree/internal/AABB_statically_filtered_traits_3.h +++ b/AABB_tree/include/CGAL/AABB_tree/internal/AABB_statically_filtered_traits_3.h @@ -32,6 +32,7 @@ public: using Point = typename GeomTraits::Point_3; using Bounding_box = Bbox_3; using Sphere_3 = typename GeomTraits::Sphere_3; + using FT = typename GeomTraits::FT; Comparison_result operator()(const Point& p, const Bounding_box& b, const Point& bound) const { Sphere_3 s = GeomTraits().construct_sphere_3_object()(p, GeomTraits().compute_squared_distance_3_object()(p, bound)); @@ -175,6 +176,18 @@ public: } return Base::Compare_distance::operator()(p, b, bound); } + + template + CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const Point& bound) const + { + return Base::Compare_distance::operator()(p, pr, bound); + } + + template + CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const FT& sq_distance) const + { + return Base::Compare_distance::operator()(p, pr, sq_distance); + } }; AABB_statically_filtered_traits_3() : Base() {} AABB_statically_filtered_traits_3(BboxMap bbm) : Base(bbm) {}