-
Notifications
You must be signed in to change notification settings - Fork 0
/
twelve_ton.scad
73 lines (62 loc) · 1.06 KB
/
twelve_ton.scad
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
use <utils.scad>;
$fn=50;
s=10;
g=0.5;
module C(l,r=1)
{
difference()
{
kube([s,s*l,s],r=-r);
translate([0,0,s/2])
kube([s+g,s+g,s+g],r=r);
}
}
module key(r=1)
{
difference() {
C(3,r);
translate([s/2,0,0])
kube(s+g,r=r);
}
}
module center(r=1)
{
difference()
{
kube([s,s*7,s],r=-r);
translate([0,0,s/2-g/2])
kube([s+g,s*5,s],r=r);
translate([s/2,0,0])
kube(s+g,r=r);
}
}
module side(r=0)
{
translate([s,0,0])
C(5,r);
translate([s*2,0,0])
C(3,r);
translate([-s,0,0])
C(5,r);
translate([-s*2,0,0])
C(3,r);
}
module full(r=0)
{
mink(r) center(r);
rotate([0,90,90])
mink(r) center(r);
rotate([90,0,-90])
mink(r) center(r);
rotate([0,90,0])
mink(r) side(r);
rotate([90,0,0])
mink(r) side(r);
rotate([180,0,90])
mink(r) side(r);
}
full(0);
//mink() key(); // print * 1
//mink() C(3); // print * 5
//mink() C(5);; // print * 6
//center(1); // print * 3