Add smaller failing issue

This commit is contained in:
Andreas Fabri 2025-01-17 10:16:08 +00:00 committed by Sébastien Loriot
parent 9a7755b31f
commit f7a57a6c41
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include <CGAL/Extended_cartesian.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Nef_polyhedron_3.h>
using Kernel = CGAL::Extended_cartesian<CGAL::Gmpq>;
using Nef = CGAL::Nef_polyhedron_3<Kernel>;
int main(int argc, char ** argv)
{
Nef hspace_1(Nef::Plane_3(1.0, 0.0, 0.0, 0.0), Nef::INCLUDED);
Nef hspace_2(Nef::Plane_3(1.0, 0.0, 0.0, 1.0), Nef::INCLUDED);
Nef hspace_3(Nef::Plane_3(0.0, 0.0, 1.0, 1.0), Nef::INCLUDED);
Nef intersection_1 = hspace_1*hspace_2; // Line 14. Works fine.
Nef intersection_2 = hspace_2*hspace_3; // Line 15. Assertion failure.
return 0;
}