From eaffbfb886c74503721b135039aa61c61c6e201c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 1 Aug 2022 13:53:44 +0200 Subject: [PATCH] add new test from issue --- .../test_intersections_Tetrahedron_3.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Intersections_3/test/Intersections_3/test_intersections_Tetrahedron_3.cpp b/Intersections_3/test/Intersections_3/test_intersections_Tetrahedron_3.cpp index 5aa3a0db2db..d1815a20b17 100644 --- a/Intersections_3/test/Intersections_3/test_intersections_Tetrahedron_3.cpp +++ b/Intersections_3/test/Intersections_3/test_intersections_Tetrahedron_3.cpp @@ -307,12 +307,23 @@ public: } } + void issue_6777() + { + Tr tri(P(0.191630, -0.331630, -0.370000), P(-0.124185, -0.385815, -0.185000), P(-0.0700000, -0.0700000, 0.00000)); + Tet tet(P(0, -1, 0), P(-1, 0, 0), P(0, 0, 0), P(0, 0, -1)); + auto res = intersection(tri, tet); + assert(res != boost::none); + const std::vector

*vps = boost::get>(&*res); + assert(vps!=nullptr); + } + void run() { std::cout << "3D Tetrahedron Intersection tests\n"; Tet_Tet(); Tet_Tr(); + issue_6777(); } };