forked from eltoozero/lol-gbz_3dparts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lol-fanmockup.scad
115 lines (84 loc) · 1.38 KB
/
lol-fanmockup.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
//lol my idea for a fan duct in the cartridge slot.
$fn=32;
//measurements
//cart lip z
cz=8;
//between case plastic and top of cartridge "notches"
//py=39;
//from bottom of lower peg to cart top lip
py=27-4;
//outside cartridge slot y
mx=61.6;
//px=0; //redefined later.
//cart plate thickness
pz=1.6;
//lower mount offset x
lmox=62;
// upper left mount offset y (from lower)
ulmoy=19;
// upper right mount offset y (from lower)
urmoy=13;
// mount diameter
md=4;
//plate-x
px=lmox+md;
//fan dimensions
fx=30;
fy=30;
fz=3.4;
//aperture
fad=18;
//aperture x offset
faxo=-1;
//fan y offset
fyo=2;
//mount hole dia
fmhd=1.6;
//mount hole coord
//top
ftmhy=27.5;
ftmhx=2.5;
//side
fsmhy=2.5;
fsmhx=2.5;
//lower
flmhy=6.4+fx/2;
flmhx=28.5;
//hold diameter
hd=1.8;
//shroud stuff
//wall thickness
wt=1.2;
//heatsink
hsx=17;
hsy=17;
hsz=6;
//cpu
cpuxo=-3;
//duct extra y
dey=2;
//for other modules
hclearance=8.6;
vclearance=14.25;
fan();
module fan() {
difference() {
//fan body
cube([fx,fy,fz]);
// fan aperture
translate([fx/2+faxo,fy/2,0])
cylinder(d=fad, h=fz);
fan_mount_holes();
}
}
module fan_mount_holes() {
//top
translate([ftmhx,ftmhy,0])
cylinder(d=fmhd, h=fz);
//side
translate([fsmhx,fsmhy,0])
cylinder(d=fmhd, h=fz);
//lower
translate([flmhx,flmhy,0])
cylinder(d=fmhd, h=fz);
}