From 6bcc074d743c3bd66dea63beb55a66e05dded6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 19 Sep 2025 15:13:25 +0200 Subject: [PATCH] Add missing overloads --- .../CGAL/Circular_kernel_3/Intersection_traits.h | 8 ++++++++ .../function_objects_polynomial_sphere.h | 14 ++++++++++++++ .../include/CGAL/Spherical_kernel_intersections.h | 2 ++ 3 files changed, 24 insertions(+) diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/Intersection_traits.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/Intersection_traits.h index ed6ac62628f..f932d8b9aa0 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/Intersection_traits.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/Intersection_traits.h @@ -156,6 +156,10 @@ template struct SK3_Intersection_traits : SK3_intersect_ternary {}; +template +struct SK3_Intersection_traits + : SK3_intersect_ternary {}; + template struct SK3_Intersection_traits : SK3_intersect_ternary {}; @@ -164,6 +168,10 @@ template struct SK3_Intersection_traits : SK3_intersect_ternary {}; +template +struct SK3_Intersection_traits + : SK3_intersect_ternary {}; + template struct SK3_Intersection_traits : SK3_intersect_ternary {}; diff --git a/Circular_kernel_3/include/CGAL/Circular_kernel_3/function_objects_polynomial_sphere.h b/Circular_kernel_3/include/CGAL/Circular_kernel_3/function_objects_polynomial_sphere.h index c2940aa42d7..8664f3abe5c 100644 --- a/Circular_kernel_3/include/CGAL/Circular_kernel_3/function_objects_polynomial_sphere.h +++ b/Circular_kernel_3/include/CGAL/Circular_kernel_3/function_objects_polynomial_sphere.h @@ -935,8 +935,10 @@ template < class SK > \ CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_2(Line_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Sphere_3, Sphere_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Sphere_3, Sphere_3, Plane_3) + CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Sphere_3, Plane_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Plane_3, Sphere_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Plane_3, Plane_3, Sphere_3) + CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Plane_3, Sphere_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_3(Sphere_3, Plane_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_2(Circle_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_DO_INTERSECTION_3_2(Plane_3, Circle_3) @@ -1024,6 +1026,12 @@ template < class SK > \ const Plane_3 & p, OutputIterator res) const { return SphericalFunctors::intersect_3 (p,s1,s2,res); } + template < class OutputIterator > + OutputIterator + operator()(const Sphere_3 & s1, const Plane_3 & p, + const Sphere_3 & s2, OutputIterator res) const + { return SphericalFunctors::intersect_3 (p,s1,s2,res); } + template < class OutputIterator > OutputIterator operator()(const Plane_3 & p, const Sphere_3 & s1, @@ -1036,6 +1044,12 @@ template < class SK > \ const Sphere_3 & s, OutputIterator res) const { return SphericalFunctors::intersect_3 (p1,p2,s,res); } + template < class OutputIterator > + OutputIterator + operator()(const Plane_3 & p1, const Sphere_3 & s, + const Plane_3 & p2, OutputIterator res) const + { return SphericalFunctors::intersect_3 (p1,p2,s,res); } + template < class OutputIterator > OutputIterator operator()(const Sphere_3 & s, const Plane_3 & p1, diff --git a/Circular_kernel_3/include/CGAL/Spherical_kernel_intersections.h b/Circular_kernel_3/include/CGAL/Spherical_kernel_intersections.h index a587d87cea4..7d605d82897 100644 --- a/Circular_kernel_3/include/CGAL/Spherical_kernel_intersections.h +++ b/Circular_kernel_3/include/CGAL/Spherical_kernel_intersections.h @@ -71,8 +71,10 @@ CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_JUST_INTERSECTION_2_(Sphere_3, Line_ CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_JUST_INTERSECTION_2_(Line_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Sphere_3, Sphere_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Sphere_3, Sphere_3, Plane_3) +CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Sphere_3, Plane_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Plane_3, Sphere_3, Sphere_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Plane_3, Plane_3, Sphere_3) +CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Plane_3, Sphere_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_3_(Sphere_3, Plane_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_2_(Circle_3, Plane_3) CGAL_SPHERICAL_KERNEL_MACRO_GLOBAL_FUNCTION_INTERSECTION_2_(Plane_3, Circle_3)