From 62df1454e3cefe26c03f9e5d2ca418d1eec95413 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 16 May 2017 13:44:37 +0200 Subject: [PATCH] Add CGAL::possibly in boolean test --- Cartesian_kernel/include/CGAL/Cartesian/function_objects.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h index 064d69088fc..1242bb48404 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h @@ -1764,10 +1764,10 @@ namespace CartesianKernelFunctors { // to avoid badly defined vectors with coordinates all close // to 0 when the plane is almost horizontal, we ignore the // smallest coordinate instead of always ignoring Z - if (a <= b && a <= c) + if (CGAL::possibly(a <= b && a <= c)) return Vector_3(FT(0), -h.c(), h.b()); - if (b <= a && b <= c) + if (CGAL::possibly(b <= a && b <= c)) return Vector_3(-h.c(), FT(0), h.a()); return Vector_3(-h.b(), h.a(), FT(0));