From 182625c5decbfe91d12242c5d69ec08b519fe2f4 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 29 Dec 2013 21:17:20 -0500 Subject: Added testcase for #578 diff --git a/testdata/scad/bugs/issue578.scad b/testdata/scad/bugs/issue578.scad new file mode 100644 index 0000000..1c750cf --- /dev/null +++ b/testdata/scad/bugs/issue578.scad @@ -0,0 +1,13 @@ +/* +sorry, this triangulation does not deal with + intersecting constraints +CGAL error: assertion violation! +Expression : false +File : ../libraries/install/include/CGAL/Constrained_triangulation_2.h +Line : 636 +Explanation: +Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html +2013-12-29 21:15:18.937 OpenSCAD[35590:507] ERROR: CGAL NefPolyhedron Triangulation failed +2013-12-29 21:15:19.104 OpenSCAD[35590:507] ERROR: CGAL NefPolyhedron->Polyhedron conversion failed. +*/ +render() import("issue578.stl"); diff --git a/testdata/scad/bugs/issue578.stl b/testdata/scad/bugs/issue578.stl new file mode 100644 index 0000000..174fd7b Binary files /dev/null and b/testdata/scad/bugs/issue578.stl differ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0d5026c..f40a772 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -885,6 +885,7 @@ set_test_config(Heavy opencsgtest_minkowski3-tests # Bugs list(APPEND BUGS_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue541.scad + ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue578.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue582.scad) list(APPEND OPENCSGTEST_FILES ${BUGS_FILES}) list(APPEND CGALPNGTEST_FILES ${BUGS_FILES}) diff --git a/tests/regression/cgalpngtest/issue578-expected.png b/tests/regression/cgalpngtest/issue578-expected.png new file mode 100644 index 0000000..e4fde15 Binary files /dev/null and b/tests/regression/cgalpngtest/issue578-expected.png differ diff --git a/tests/regression/opencsgtest/issue578-expected.png b/tests/regression/opencsgtest/issue578-expected.png new file mode 100644 index 0000000..e4fde15 Binary files /dev/null and b/tests/regression/opencsgtest/issue578-expected.png differ -- cgit v0.10.1