summaryrefslogtreecommitdiff
path: root/testdata/scad/features/transform-tests.scad
blob: a591695820464795fdecfe2f09b36812087b0ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()
contact: Jan Huwald // Impressum