added missing operators in derived class

This commit is contained in:
Sven Oesau 2025-10-22 14:49:48 +02:00
parent 6eb1da989f
commit f79fc7fc58
2 changed files with 13 additions and 1 deletions

View File

@ -407,7 +407,6 @@ public:
CGAL::SMALLER : CGAL::LARGER; CGAL::SMALLER : CGAL::LARGER;
} }
// The following functions seem unused...?
template <class Solid> template <class Solid>
CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const Point& bound) const CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const Point& bound) const
{ {

View File

@ -32,6 +32,7 @@ public:
using Point = typename GeomTraits::Point_3; using Point = typename GeomTraits::Point_3;
using Bounding_box = Bbox_3; using Bounding_box = Bbox_3;
using Sphere_3 = typename GeomTraits::Sphere_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 { 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)); 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); return Base::Compare_distance::operator()(p, b, bound);
} }
template <class Solid>
CGAL::Comparison_result operator()(const Point& p, const Solid& pr, const Point& bound) const
{
return Base::Compare_distance::operator()(p, pr, bound);
}
template <class Solid>
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() : Base() {}
AABB_statically_filtered_traits_3(BboxMap bbm) : Base(bbm) {} AABB_statically_filtered_traits_3(BboxMap bbm) : Base(bbm) {}