Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions 10InchRackGenerator.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ component_height = 28.30;
// ========================================
/* [Keystones] */
// Add keystone jacks to the front panel
keystones = false; // [true: Place keystone jacks, false: Remove keystone jacks]

keystones = false; // [true: Place keystone jacks, false: Remove keystone jacks]
keystone_left = true; // [true: Place keystone jack on the left, false: Remove left keystone jack]
keystone_right = true; // [true: Place keystone jack on the right, false: Remove right keystone jacks]
// ========================================
/* [Holes] */
// Adds small cutout a USB or Power cable could be routed through to the front
Expand Down Expand Up @@ -463,16 +464,24 @@ module switch_mount(switch_width, switch_height, switch_depth) {
air_holes();
}
if (keystones) {
keystone_front_cutout();
translate([rack_width, 0, 0]) mirror([1, 0, 0]) keystone_front_cutout();
if (keystone_left) { //Cutout for left Keystone
keystone_front_cutout();
}
if (keystone_right){ //Cutout for Right Keystone
translate([rack_width, 0, 0]) mirror([1, 0, 0]) keystone_front_cutout();
}
}
}
}
if (keystones) {
// rotate([90,0,0]) maps keystone Y→rack Z (depth), keystone Z→rack -Y (compensated by +keystone_outer_height in translate)
translate([keystone_tx, keystone_ty + keystone_outer_height, 0]) rotate([90,0,0]) keystone();
translate([rack_width, 0, 0]) mirror([1, 0, 0])
if (keystone_left){ //Make left Keystone
translate([keystone_tx, keystone_ty + keystone_outer_height, 0]) rotate([90,0,0]) keystone();
}
if (keystone_right){ //Make right Keystone
translate([rack_width, 0, 0]) mirror([1, 0, 0])
translate([keystone_tx, keystone_ty + keystone_outer_height, 0]) rotate([90,0,0]) keystone();
}
}
}
}
Expand Down