summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-07 04:21:11 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-07 04:21:11 (GMT)
commit679b8d05c8e25ce95e655b2c0f0e2793e408c368 (patch)
tree9132297412ee30f86923f3efedad58e986619562 /testdata
parent9d296acf67a24f5f6120ab8b0dc628f097a5920e (diff)
bugfix: 2D hull() now works with for loops. Thanks to nophead to reasserting this bug.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/features/hull2-tests.scad9
1 files changed, 8 insertions, 1 deletions
diff --git a/testdata/scad/features/hull2-tests.scad b/testdata/scad/features/hull2-tests.scad
index 3bea3c5..e656e6a 100644
--- a/testdata/scad/features/hull2-tests.scad
+++ b/testdata/scad/features/hull2-tests.scad
@@ -13,7 +13,6 @@ module concave2dSimple() {
}
}
-// Works correctly
module convex2dHole() {
hull() {
translate([15,10,0]) circle(10);
@@ -24,7 +23,15 @@ module convex2dHole() {
}
}
+module hull2dForLoop() {
+ hull() {
+ for(x = [0,10])
+ for(y=[0,10])
+ translate([x,y]) circle(3);
+ }
+}
convex2dHole();
translate([40,0,0]) convex2dSimple();
translate([0,-20,0]) concave2dSimple();
+translate([30,-25,0]) hull2dForLoop();
contact: Jan Huwald // Impressum