summaryrefslogtreecommitdiff
path: root/testdata/scad/features/scale3D-tests.scad
blob: c46aae677f702f351d916de2c83c6ddda88d02b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
module obj3D() cylinder(r=1, center=true, $fn=8);

// 3 variants of 3D scale of 3D object
translate([0,0,0]) scale([1,2,3]) obj3D();
translate([5,0,0]) scale([2,1]) obj3D();
translate([10,0,0]) scale(2) obj3D();

// Scale by zero; 3D object
linear_extrude() scale([0,0,0]) obj3D();
linear_extrude() scale([0,1,0]) obj3D();
linear_extrude() scale([1,1,0]) obj3D();
contact: Jan Huwald // Impressum