summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata/scad/bugs/issue585.scad5
-rw-r--r--testdata/scad/bugs/polygon-touch.scad5
-rw-r--r--testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad9
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/regression/cgalpngtest/issue585-expected.pngbin0 -> 2182 bytes
-rw-r--r--tests/regression/opencsgtest/issue585-expected.pngbin0 -> 7078 bytes
6 files changed, 7 insertions, 15 deletions
diff --git a/testdata/scad/bugs/issue585.scad b/testdata/scad/bugs/issue585.scad
new file mode 100644
index 0000000..f89529d
--- /dev/null
+++ b/testdata/scad/bugs/issue585.scad
@@ -0,0 +1,5 @@
+// Somehow the 2D union/tessellation algorithm doesn't support touching polygons
+// Changing translate([-10,-10,0]) to translate([-9.99,-9.99,0]) works
+
+square([10,10]);
+translate([-10,-10,0]) square([10,10]);
diff --git a/testdata/scad/bugs/polygon-touch.scad b/testdata/scad/bugs/polygon-touch.scad
deleted file mode 100644
index afa2938..0000000
--- a/testdata/scad/bugs/polygon-touch.scad
+++ /dev/null
@@ -1,5 +0,0 @@
-# Somehow the 2D union/tessellation algorithm doesn't support touching polygons
-# Changing translate([-10,-10,0]) to translate([-9.99,-9.99,0]) works
-
-square([10,10]);
-translate([-10,-10,0]) square([10,10]);
diff --git a/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad b/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
deleted file mode 100644
index 754a2a6..0000000
--- a/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
+++ /dev/null
@@ -1,9 +0,0 @@
-difference() {
- rotate_extrude($fn=5) translate([4,0,0]) square([10, 10], center=true);
- translate([6,6,6]) sphere(r=10);
-}
-
-union() {
- rotate_extrude($fn=5) translate([4,0,0]) square([10, 10], center=true);
- cylinder(h=5,r=3);
-}
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index aada41a..9e44780 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -888,7 +888,8 @@ 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/issue578b.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue582.scad
- ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue584.scad)
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue584.scad
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/issue585.scad)
list(APPEND OPENCSGTEST_FILES ${BUGS_FILES})
list(APPEND CGALPNGTEST_FILES ${BUGS_FILES})
diff --git a/tests/regression/cgalpngtest/issue585-expected.png b/tests/regression/cgalpngtest/issue585-expected.png
new file mode 100644
index 0000000..00c70a0
--- /dev/null
+++ b/tests/regression/cgalpngtest/issue585-expected.png
Binary files differ
diff --git a/tests/regression/opencsgtest/issue585-expected.png b/tests/regression/opencsgtest/issue585-expected.png
new file mode 100644
index 0000000..bc9d333
--- /dev/null
+++ b/tests/regression/opencsgtest/issue585-expected.png
Binary files differ
contact: Jan Huwald // Impressum