diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-25 19:21:17 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-25 19:21:17 (GMT) |
commit | 9740232b080ac3d2fe87309fb51a892faf6ea913 (patch) | |
tree | 974ac256413de1111a085d12cad7bc3f755792dd /testdata/scad/features/linear_extrude-tests.scad | |
parent | fef8dba56bae76f6e876656cee603fc895fa0955 (diff) | |
parent | e60744776193d5dc3f22e7a4a9f3afa8b8664e30 (diff) |
Merge branch 'master' into issue364
Diffstat (limited to 'testdata/scad/features/linear_extrude-tests.scad')
-rw-r--r-- | testdata/scad/features/linear_extrude-tests.scad | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testdata/scad/features/linear_extrude-tests.scad b/testdata/scad/features/linear_extrude-tests.scad index 67d892f..528eea2 100644 --- a/testdata/scad/features/linear_extrude-tests.scad +++ b/testdata/scad/features/linear_extrude-tests.scad @@ -12,4 +12,13 @@ translate([31.5,2.5,0]) linear_extrude(height=10, twist=-45) polygon(points = [[ translate([0,20,0]) linear_extrude(height=20, twist=45, slices=2) square([10,10]); translate([19,20,0]) linear_extrude(height=20, twist=45, slices=10) square([10,10]); -translate([-15,0,0]) linear_extrude(5) square([10,10]); +translate([0,-15,0]) linear_extrude(5) square([10,10]); + +// scale given as a scalar +translate([-25,-10,0]) linear_extrude(height=10, scale=2) square(5, center=true); +// scale given as a 3-dim vector +translate([-15,20,0]) linear_extrude(height=20, scale=[4,5,6]) square(10); +// scale is negative +translate([-10,5,0]) linear_extrude(height=15, scale=-2) square(10, center=true); +// scale given as undefined +translate([-15,-15,0]) linear_extrude(height=10, scale=var_undef) square(10); |