From 69cc884e54f15ffa5809265a15e82371d3a1895d Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Wed, 29 Oct 2025 09:34:45 +0100 Subject: [PATCH] simplifying generic iso_cuboid - sphere intersection tests --- .../test/Intersections_3/test_intersections_Iso_cuboid_3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Intersections_3/test/Intersections_3/test_intersections_Iso_cuboid_3.cpp b/Intersections_3/test/Intersections_3/test_intersections_Iso_cuboid_3.cpp index caf511216a1..ca26038d94d 100644 --- a/Intersections_3/test/Intersections_3/test_intersections_Iso_cuboid_3.cpp +++ b/Intersections_3/test/Intersections_3/test_intersections_Iso_cuboid_3.cpp @@ -441,7 +441,7 @@ public: } // generic inside - for(int i=0; ir.get_int(this->m, this->M); int my = this->r.get_int(this->m, this->M); @@ -472,7 +472,7 @@ public: Md = (std::max)((std::max)(My - y, y - my), Md); Md = (std::max)((std::max)(Mz - z, z - mz), Md); - check_do_intersect(cub, Sph(c, CGAL::square(this->r.get_int(md, Md)))); + check_do_intersect(cub, Sph(c, CGAL::square((md + Md)>>1))); } }