further work on rack-mount refactor

This commit is contained in:
zhao
2023-09-01 15:30:16 -04:00
parent 658fcf9948
commit be3020cbb1
10 changed files with 194 additions and 92 deletions

View File

@ -0,0 +1,28 @@
include <../common.scad>
use <./entry.scad>
$vpt = [110,-42,36];
$vpr = [77,0,23];
$vpd = 445;
$vpf = 22.50;
animatePatchPanel(at=$t);
module animatePatchPanel(at=$t) {
plateThickness = 3;
keystoneSpacing = 19;
slots = max(1,ceil(at*8));
rotate(a=[90,0,0])
mirror(v=[0,0,1])
render()
patchPanelSystem(numSlots = slots, plateThickness=plateThickness, keystoneSpacing=keystoneSpacing);
// keystone visualization
for (i = [0:slots-1]) {
translate(v=[keystoneSpacing*i + 12, 0,0,]) // hardcoded offset
%rj45Keystone();
}
}

View File

@ -1,18 +1,26 @@
use <./patchPanel.scad>
/*
Parametric patch panel -
Parametric patch panel for rj45 keystones
Please also make sure that the correct rack frame preset is set in rackFrame.scad.
TODO add support for 2d arrays
*/
module patchPanelSystem (
// begin config ////////////////////////////////////////////////////////////////////////////////////////////////////////
numSlots = 8;
numSlots = 8,
plateThickness = 3,
keystoneSpacing = 19
// end config //////////////////////////////////////////////////////////////////////////////////////////////////////////
mirror(v=[0,0,1])
patchPanel(slots=numSlots);
) {
mirror(v = [0, 0, 1])
patchPanel(slots = numSlots);
}
patchPanelSystem();

View File

@ -7,12 +7,9 @@ use <../plateBase.scad>
Please also make sure that the correct rack frame preset is set in rackFrame.scad.
*/
*patchPanel(slots=2);
module patchPanel (slots=8) {
module patchPanel (slots=8, plateThickness=3, keystoneSpacing=19) {
difference() {
plateThickness = 3;
keystoneSpacing = 19;
supportPlateThickness = 5.9;
supportPlateHeight = 29;
supportPlateEdgeSpacing = 3;