summaryrefslogtreecommitdiff
path: root/testdata/scad/misc
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/scad/misc')
-rw-r--r--testdata/scad/misc/empty-shape-tests.scad28
-rw-r--r--testdata/scad/misc/rotate-empty-bbox.scad11
2 files changed, 39 insertions, 0 deletions
diff --git a/testdata/scad/misc/empty-shape-tests.scad b/testdata/scad/misc/empty-shape-tests.scad
new file mode 100644
index 0000000..2b1a98c
--- /dev/null
+++ b/testdata/scad/misc/empty-shape-tests.scad
@@ -0,0 +1,28 @@
+linear_extrude(h=1) {
+ square(0);
+ circle(0);
+ polygon();
+ import();
+}
+
+cube(0);
+sphere(0);
+cylinder(0);
+polyhedron();
+import();
+surface();
+rotate_extrude();
+linear_extrude();
+translate();
+color();
+hull();
+minkowski();
+union();
+difference();
+intersection();
+render();
+projection();
+assign();
+if(1) { }
+intersection_for();
+for();
diff --git a/testdata/scad/misc/rotate-empty-bbox.scad b/testdata/scad/misc/rotate-empty-bbox.scad
new file mode 100644
index 0000000..f39a923
--- /dev/null
+++ b/testdata/scad/misc/rotate-empty-bbox.scad
@@ -0,0 +1,11 @@
+// rotate([90,0,0]) results in a matrix with some close-to-zero values
+// Transforming an empty boundingbox by this matrix has caused a problem resulting
+// in the union being evaluated to nothing.
+rotate([90,0,0])
+difference() {
+ cube(60, center=true);
+ union() {
+ translate([0,0,40]) cube(50, center=true);
+ cube(0);
+ }
+}
contact: Jan Huwald // Impressum