summaryrefslogtreecommitdiff
path: root/testdata/scad/features/resize-2d-tests.scad
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-16 18:04:32 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-16 18:04:32 (GMT)
commit9891d8c86cbd567308575a0d4ec4b0d2f35776c8 (patch)
tree55e4d0d0dba1c7d9874083c8047d626b05a39cf4 /testdata/scad/features/resize-2d-tests.scad
parent4fa2338b267bdf6e08385ae103b5bafe7b4ee6e4 (diff)
fix 3d test bug, improve 2d test, update release note
Diffstat (limited to 'testdata/scad/features/resize-2d-tests.scad')
-rw-r--r--testdata/scad/features/resize-2d-tests.scad20
1 files changed, 15 insertions, 5 deletions
diff --git a/testdata/scad/features/resize-2d-tests.scad b/testdata/scad/features/resize-2d-tests.scad
index 76da09e..911a4cd 100644
--- a/testdata/scad/features/resize-2d-tests.scad
+++ b/testdata/scad/features/resize-2d-tests.scad
@@ -1,4 +1,7 @@
// red = reference
+// gold = basic resize
+// green = auto resize
+// pink = errors, wrong syntax, trying to resize in 3rd dimension, etc
$fn=10;
@@ -28,18 +31,25 @@ module shape3(){
}
}
-translate([0,0]) resize([15,15]) shape();
-translate([0,16]) resize([15,15,0]) shape2();
-translate([0,32]) resize([15,15]) shape3();
-
color("red") {
translate([-16,0]) scale([3,3]) shape();
translate([-16,16]) scale([3,3]) shape2();
translate([-16,32]) scale([3,3]) shape3();
}
+translate([0,0]) resize([15,15]) shape();
+translate([0,16]) resize([15,15,0]) shape2();
+translate([0,32]) resize([15,15]) shape3();
+
color("green"){
translate([16,0]) resize([15,0],auto=true) shape();
translate([16,16]) resize([0,15],auto=true) shape2();
-translate([16,32]) resize([0,0,15],auto=true) shape3();
+translate([16,32]) resize([0,15],auto=[true,false]) shape3();
}
+
+color("pink"){
+translate([32,0]) resize([0,0],auto=[false,true]) shape();
+translate([32,16]) resize([0,0,15],auto=true) shape2();
+translate([32,32]) resize([0,0,15]) shape3();
+}
+
contact: Jan Huwald // Impressum