-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.scad
88 lines (85 loc) · 1.3 KB
/
a.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
l = 16;
e = 0.16;
g = 3;
module m(v,w) { translate(v*l+[e,e,e]-3*e*w) cube((l-2*e)*[1,1,1]+(6*e-l)*w); }
module a(i,j,k) { m([i,j,k],[0,0,0]); }
module bx(i,j,k) { m([i,j,k],[1,0,0]); }
module by(i,j,k) { m([i,j,k],[0,1,0]); }
module bz(i,j,k) { m([i,j,k],[0,0,1]); }
module cx(i,j,k) { m([i,j,k],[0,1,1]); }
module cy(i,j,k) { m([i,j,k],[1,0,1]); }
module cz(i,j,k) { m([i,j,k],[1,1,0]); }
module d(i,j,k) { m([i,j,k],[1,1,1]); }
module p() {
a(0,3,0);
by(0,3,0);
a(4,3,0);
by(4,3,0);
a(0,2,0);
by(0,2,0);
a(2,2,0);
a(3,2,0);
bx(3,2,0);
by(3,2,0);
a(4,2,0);
bx(4,2,0);
cz(4,2,0);
by(4,2,0);
a(0,1,0);
by(0,1,0);
a(3,1,0);
a(4,1,0);
bx(4,1,0);
a(0,0,0);
a(0,3,1);
bz(0,3,1);
a(4,3,1);
by(4,3,1);
cx(4,3,1);
bz(4,3,1);
a(2,2,1);
bz(2,2,1);
a(4,2,1);
bz(4,2,1);
a(0,1,1);
by(0,1,1);
cx(0,1,1);
bz(0,1,1);
a(0,0,1);
bz(0,0,1);
a(0,3,2);
bz(0,3,2);
a(4,3,2);
bz(4,3,2);
a(2,2,2);
by(2,2,2);
bz(2,2,2);
a(0,1,2);
by(0,1,2);
cx(0,1,2);
bz(0,1,2);
a(1,1,2);
bx(1,1,2);
a(2,1,2);
bx(2,1,2);
a(0,0,2);
bz(0,0,2);
a(0,3,3);
by(0,3,3);
bz(0,3,3);
a(4,3,3);
bz(4,3,3);
a(0,2,3);
by(0,2,3);
a(0,1,3);
by(0,1,3);
cx(0,1,3);
bz(0,1,3);
a(1,1,3);
bx(1,1,3);
cy(1,1,3);
bz(1,1,3);
a(0,0,3);
bz(0,0,3);
}
p();