summaryrefslogtreecommitdiff
path: root/testdata/scad
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-23 20:14:12 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-23 20:14:12 (GMT)
commitd6efe5cbcb99f7730b47b5945f305f08b5d21b94 (patch)
treeeb429be5acf82a5710d9879dd5fd00b62f1788b7 /testdata/scad
parent87ce149df2581361e8975bd1a0addf2b6ef61e3d (diff)
parent10c96326866c8256e82f0092a18f4f4e3ca06a74 (diff)
Merge branch 'master' into boost_filesystem
Conflicts: tests/CMakeLists.txt
Diffstat (limited to 'testdata/scad')
-rw-r--r--testdata/scad/bugs/bbox-transform-bug.scad9
-rw-r--r--testdata/scad/features/render-2d-tests.scad6
2 files changed, 15 insertions, 0 deletions
diff --git a/testdata/scad/bugs/bbox-transform-bug.scad b/testdata/scad/bugs/bbox-transform-bug.scad
new file mode 100644
index 0000000..ccd2eab
--- /dev/null
+++ b/testdata/scad/bugs/bbox-transform-bug.scad
@@ -0,0 +1,9 @@
+//
+// Bug description: The intersection results in an empty object.
+// Cause: The rotated bounding box is wrongly calculated, yielding a
+// box which don't overlap with the bounding box of the second object.
+//
+intersection() {
+ rotate(45) cube(10);
+ translate([3,2,0]) cube(10);
+}
diff --git a/testdata/scad/features/render-2d-tests.scad b/testdata/scad/features/render-2d-tests.scad
new file mode 100644
index 0000000..683ffe4
--- /dev/null
+++ b/testdata/scad/features/render-2d-tests.scad
@@ -0,0 +1,6 @@
+render() {
+ difference() {
+ square(100, center=true);
+ circle(r=30);
+ }
+}
contact: Jan Huwald // Impressum