summaryrefslogtreecommitdiff
path: root/3d/pawn.scad
blob: 0c581cc425626d4ceecba7df3411454596ba6375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$fa = 1;
$fn = 0;
$fs = 1;

module smooth_cylinder() {
    rotate_extrude(angle=90)
    translate([-10, 10, 0])
    rotate([180, 0, 0])
    difference() {
        square(10);
        circle(10);
    }
}

d1 = 6;
d2 = 10;
h1 = 2;
h2 = h1 + d1;
h3 = h2 + d2;
h4 = h3 + 5;

cylinder(h=1.0, r=10);

translate([0, 0, 1.0]) {
    scale([1.0, 1.0, 0.2])
    difference() {
        sphere(10);
        translate([0,0,-10]) cylinder(h=10, r=10);
    }
}

translate([0, 0, h1]) {
  cylinder(h=d1, r1=8, r2=6);
}

translate([0, 0, h2]) {
    cylinder(h=d2, r1=4, r2=3);
}
echo(h2);

translate([0, 0, h3]) {
    scale([1.0, 1.0, 0.16]) sphere(6);
}

translate([0, 0, h4]) {
    sphere(5);
}