summaryrefslogtreecommitdiff
path: root/testdata/scad/features/cylinder-tests.scad
blob: 71f43a6b436b3c587f499baf894347773df65c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cylinder();
translate([1,0,0]) cylinder(r=0);
translate([2,0,0]) cylinder(r1=0, r2=0);
translate([0,-11,0]) cylinder(r=5);
translate([0,11,0]) cylinder(r=5, h=10, center=true);

translate([11,-11,0]) cylinder(h=5, r1=5);
translate([11,0,0]) cylinder(h=5, r1=5, r2=0);
translate([11,11,0]) cylinder(h=8, r1=5, r2=5);

translate([22,-11,0]) cylinder(h=5, r=5, r1=0, center=true);
translate([22,0,0]) cylinder(h=5, r=5, r2=0);
translate([22,11,0]) cylinder(h=15, r=5, r2=5);

// This tests for hexagonal cylinder orientation, since people
// tend to "abuse" this for captured nut slots
translate([-10,0,0]) cylinder(h=2, r=3, $fn=6);


// FIXME: We could test $fs, $fa, $fn as well
contact: Jan Huwald // Impressum