-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtjunction-top.scad
48 lines (42 loc) · 935 Bytes
/
tjunction-top.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
$fn = 50;
dimh = 20.4;
dimv = 20.5;
len = 50;
wall = 3;
m5rad = 3;
junction();
*translate([5, dimh+10, 0]) mirror() junction();
module junction() {
union() {
p1();
translate([-len/2-dimh/2-wall, 0, 0])
p2();
}
}
module p1() {
translate([0, 0, (dimv+wall)/2])
difference() {
cube([len, dimh+wall, dimv+wall], true);
translate([0, wall/2, wall/2])
cube([len+1, dimh+0.1, dimv+0.1], true);
for (i=[-1, 1])
translate([i*len/4, 0, wall/2])
rotate([90, 0, 0])
cylinder(r=m5rad, h=dimh*2, center=true);
}
}
module p2() {
translate([0, 0, (dimv+wall*2)/2])
difference() {
cube([dimh+wall*2, len, dimv+wall*2], true);
translate([0, 0, 0])
cube([dimh, len+1, dimv], true);
for (i=[-1, 1])
translate([-dimh/2, i*len/4, 0])
rotate([0, 90, 0])
cylinder(r=m5rad, h=dimh, center=true);
translate([dimh/2, len/3, 0])
rotate([0, 90, 0])
cylinder(r=m5rad, h=dimh, center=true);
}
}