From 21ebead9b0320cabb0c113569a595b70ffa56d04 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 3 May 2022 11:54:19 +0100 Subject: [PATCH] Intersect_3: Fix assert in the testsuite --- .../test/Intersections_3/test_intersections_Line_3.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Intersections_3/test/Intersections_3/test_intersections_Line_3.cpp b/Intersections_3/test/Intersections_3/test_intersections_Line_3.cpp index 5d59b3c14f3..9b5490c0164 100644 --- a/Intersections_3/test/Intersections_3/test_intersections_Line_3.cpp +++ b/Intersections_3/test/Intersections_3/test_intersections_Line_3.cpp @@ -343,8 +343,8 @@ public: if(tet.is_degenerate()) continue; - P l0 = tet0 + CGAL::cross_product(V(tet0, tet1), V(tet0, tet2)); - P l1 = tet2 + CGAL::cross_product(V(tet2, tet1), V(tet2, tet0)); + P l0 = tet0 - CGAL::cross_product(V(tet0, tet1), V(tet0, tet2)); + P l1 = tet3 + CGAL::cross_product(V(tet3, tet1), V(tet3, tet2)); assert(tet.has_on_unbounded_side(l0) && tet.has_on_unbounded_side(l1)); @@ -363,6 +363,7 @@ public: // No intersection Tr tr(p(0,0,0), p(1,0,1), p(1,1,0)); + check_no_intersection(L(p(5,0,0), p(5,1,0)), tr); // on edge