summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata/scad/bugs/issue495b.scad6
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/regression/cgalpngtest/issue495b-expected.pngbin0 -> 7854 bytes
-rw-r--r--tests/regression/opencsgtest/issue495b-expected.pngbin0 -> 8284 bytes
4 files changed, 7 insertions, 0 deletions
diff --git a/testdata/scad/bugs/issue495b.scad b/testdata/scad/bugs/issue495b.scad
new file mode 100644
index 0000000..fb868ba
--- /dev/null
+++ b/testdata/scad/bugs/issue495b.scad
@@ -0,0 +1,6 @@
+// In CGAL mode, there should be a cavity
+difference() {
+ polyhedron(convexity=2, faces=[[2,1,0],[3,1,2],[4,0,1],[4,1,5],[4,2,0],[6,2,4],[6,3,2],[7,3,6],[5,1,3],[5,3,7],[6,4,5],[6,5,7],[9,10,8],[9,11,10],[8,12,9],[9,12,13],[10,12,8],[10,14,12],[11,14,10],[11,15,14],[9,13,11],[11,13,15],[12,14,13],[13,14,15]],
+points=[[-5,-5,-5],[-5,-5,5],[-5,5,-5],[-5,5,5],[5,-5,-5],[5,-5,5],[5,5,-5],[5,5,5],[-2.5,-2.5,-2.5],[-2.5,-2.5,2.5],[-2.5,2.5,-2.5],[-2.5,2.5,2.5],[2.5,-2.5,-2.5],[2.5,-2.5,2.5],[2.5,2.5,-2.5],[2.5,2.5,2.5]]);
+ translate([0,0,10]) cube(20, center=true);
+} \ No newline at end of file
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 446b7b7..376b874 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/issue495.scad
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue495b.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue541.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue578.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue578b.scad
diff --git a/tests/regression/cgalpngtest/issue495b-expected.png b/tests/regression/cgalpngtest/issue495b-expected.png
new file mode 100644
index 0000000..6302d94
--- /dev/null
+++ b/tests/regression/cgalpngtest/issue495b-expected.png
Binary files differ
diff --git a/tests/regression/opencsgtest/issue495b-expected.png b/tests/regression/opencsgtest/issue495b-expected.png
new file mode 100644
index 0000000..5d012bf
--- /dev/null
+++ b/tests/regression/opencsgtest/issue495b-expected.png
Binary files differ
contact: Jan Huwald // Impressum