-
Notifications
You must be signed in to change notification settings - Fork 7
/
P74_chain_link.scad
77 lines (70 loc) · 1.98 KB
/
P74_chain_link.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
// P74 Plastic Meccano chain link
//
// V1.0 Sun, April 14 2019 WH
//
eps=0.04;
$fn=20;
inch=25.4;
module P74() {
hole_dia = 0.122*inch;
axle_dia = 0.115*inch;
axle_lng = 0.412*inch;
link_dia = 0.147*inch;
major_width = 0.393*inch;
thickness = 0.061*inch;
major_gap = major_width-2*thickness;
minor_width = 0.266*inch;
minor_gap = minor_width-2*thickness;
height = 0.244*inch;
pitch = 0.375*inch;
length = pitch+height;
module side() {
mid = major_width/4 - minor_width/4 + thickness/2;
x = sqrt(thickness*thickness/2);
translate([-height/2,0,0])
linear_extrude(height=height)
polygon(
points=[
[0,0],
[0,thickness],
[length/2-mid-x+thickness,thickness],
[length/2+mid-x,thickness+(major_width-minor_width)/2],
[length,thickness+(major_width-minor_width)/2],
[length,(major_width-minor_width)/2],
[length/2+mid+x-thickness,(major_width-minor_width)/2],
[length/2-mid+x,0]
]
);
}
difference() {
intersection() {
// round ended hull
hull() {
cylinder(h=major_width,d=height,center=true);
translate([pitch,0,0])
cylinder(h=major_width,d=height,center=true);
}
// sides
union() {
translate([0,height/2,0])
rotate([90,0,0])
translate([0,-major_width/2,0])
side();
translate([0,-height/2,0])
rotate([-90,0,0])
translate([0,-major_width/2,0])
side();
}
}
// - link holes
cylinder(h=major_width+2*eps,d=hole_dia,center=true);
}
// + outer link axle
translate([pitch,0,0])
cylinder(h=axle_lng,d=axle_dia,center=true);
// + inner link axle
translate([pitch,0,0])
cylinder(h=minor_gap+2*eps,d=link_dia,center=true);
}
rotate([90,0,0])
P74();