forked from dacut/3DDesigns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVacuum Fix Sheet Metal.scad
31 lines (27 loc) · 1002 Bytes
/
Vacuum Fix Sheet Metal.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
thickness = 25.4 * 0.125;
holeSpacing = 25.4 * 2.5875;
holeDiameter = 25.4 * 0.2;
holeDepth = 25.4 * 0.125;
nHoles = 5;
margin = 25.4 * 0.5;
pipeDiameter = 25.4 * 2.0;
totalHeight = nHoles * holeSpacing + holeDiameter + 2 * margin;
epsilon = 25.4 * 0.001;
nSides=180;
difference() {
union() {
translate([0, 0, -margin])
cylinder(h=totalHeight, d=pipeDiameter, $fn=nSides);
}
union() {
translate([0, 0, -margin - epsilon])
cylinder(h=totalHeight + 2*epsilon, d=pipeDiameter-thickness, $fn=nSides);
translate([-0.5 * pipeDiameter - epsilon, -0.5 * pipeDiameter, -margin - epsilon])
cube([pipeDiameter + 2 * epsilon, 0.5 * pipeDiameter + 2 * epsilon, totalHeight + 2*epsilon]);
for (holeZ = [0 : holeSpacing : totalHeight]) {
translate([0, 0.5 * pipeDiameter - thickness - 2 * epsilon, holeZ])
rotate([-90, 0, 0])
cylinder(h=2 * epsilon + holeDepth, d=holeDiameter, $fn=nSides);
}
}
}