diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-05 16:20:43 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-05 16:20:43 (GMT) |
commit | 23af865389ff16987033364c32a711413022b8b8 (patch) | |
tree | be73dbdd2d7047a14647191fae388d0e2646e942 /testdata | |
parent | 06001a466599f4199a1a57a2cd45a2cf41c3db82 (diff) |
Added transform-tests
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/features/transform-tests.scad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testdata/scad/features/transform-tests.scad b/testdata/scad/features/transform-tests.scad new file mode 100644 index 0000000..a591695 --- /dev/null +++ b/testdata/scad/features/transform-tests.scad @@ -0,0 +1,18 @@ +module mycyl() { + cylinder(r1=10, r2=0, h=20); +} + +translate([25,0,0]) scale([1,2,0.5]) mycyl(); +translate([20,-30,0]) scale(0.5) mycyl(); +translate([0,-20,0]) rotate([90,0,0]) mycyl(); +rotate(v=[-1,0,0], a=45) mycyl(); +multmatrix([[1,0,0,-25], + [0,1,0,0], + [0,0,1,0], + [0,0,0,1]]) mycyl(); +multmatrix([[1,0.4,0.1,-25], + [0.4,0.8,0,-25], + [0.2,0.2,0.5,0], + [0,0,0,1]]) mycyl(); + +//FIXME: mirror()
\ No newline at end of file |