further work on rack-mount refactor
This commit is contained in:
28
rack-mount/patch-panel/animate.scad
Normal file
28
rack-mount/patch-panel/animate.scad
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
@ -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();
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user