-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpatchPanel.scad
42 lines (35 loc) · 1.54 KB
/
patchPanel.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
include <../common.scad>
use <../plateBase.scad>
/*
Parametric patch panel -
Please see ./entry.scad for configuring/printing
Please also make sure that the correct rack frame preset is set in rackFrame.scad.
*/
module patchPanel (slots=8, plateThickness=3, keystoneSpacing=19, center=false) {
difference() {
supportPlateThickness = 5.9;
supportPlateHeight = 29;
supportPlateEdgeSpacing = 3;
supportPlateWidth = slots * keystoneSpacing + supportPlateEdgeSpacing;
supportPlateMinPadding = railScrewHoleToInnerEdge+4;
// TODO: these values should belong somewhere closer to plateBase.scad
railScrewToEdge = 4.5;
plateLength = rackMountScrewWidth + 2*railScrewToEdge;
leftRailScrewToSupportDx = center
? (plateLength-(supportPlateWidth+supportPlateMinPadding))/2
: supportPlateMinPadding;
union() {
plateBase(U = 2, plateThickness = plateThickness, screwType = mainRailScrewType, screwToXEdge=railScrewToEdge, screwToYEdge=railScrewToEdge, filletR = 2);
translate(v = [leftRailScrewToSupportDx, - railScrewToEdge, - supportPlateThickness])
cube(size = [supportPlateWidth, supportPlateHeight, supportPlateThickness]);
}
render()
union() {
for (i = [0:slots-1]) {
translate(v = [leftRailScrewToSupportDx+supportPlateEdgeSpacing + i*keystoneSpacing, 0, eps])
rotate(a = [-90, 0, 0])
rj45KeystoneJack_N();
}
}
}
}