diff options
-rw-r--r-- | testdata/scad/bugs/issue582.scad | 5 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/regression/cgalpngtest/issue582-expected.png | bin | 0 -> 7458 bytes | |||
-rw-r--r-- | tests/regression/opencsgtest/issue582-expected.png | bin | 0 -> 7458 bytes |
4 files changed, 7 insertions, 1 deletions
diff --git a/testdata/scad/bugs/issue582.scad b/testdata/scad/bugs/issue582.scad new file mode 100644 index 0000000..f2e8152 --- /dev/null +++ b/testdata/scad/bugs/issue582.scad @@ -0,0 +1,5 @@ +// Causes a CGAL assertion in CGALEvaluator::process() +e=0.000; +for (m = [ [ [ 0, 1, 0], [ 0, 0, 1], [ 1, 0, 0] ], + [ [-1, 0, e], [ 0,-1, 0], [ 0, 0,-1] ] ] ) + multmatrix (m) cube([1,5,1], center=true); diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a591a83..0d5026c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -884,7 +884,8 @@ set_test_config(Heavy opencsgtest_minkowski3-tests # Bugs -list(APPEND BUGS_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue541.scad) +list(APPEND BUGS_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue541.scad + ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue582.scad) list(APPEND OPENCSGTEST_FILES ${BUGS_FILES}) list(APPEND CGALPNGTEST_FILES ${BUGS_FILES}) foreach(FILE ${BUGS_FILES}) diff --git a/tests/regression/cgalpngtest/issue582-expected.png b/tests/regression/cgalpngtest/issue582-expected.png Binary files differnew file mode 100644 index 0000000..6b9d018 --- /dev/null +++ b/tests/regression/cgalpngtest/issue582-expected.png diff --git a/tests/regression/opencsgtest/issue582-expected.png b/tests/regression/opencsgtest/issue582-expected.png Binary files differnew file mode 100644 index 0000000..6b9d018 --- /dev/null +++ b/tests/regression/opencsgtest/issue582-expected.png |