From 9b88c47dd6e31b2dbc906af5d2b641ce36371dd2 Mon Sep 17 00:00:00 2001 From: StanDaMan <0310njs@gmail.com> Date: Mon, 13 Jul 2026 23:39:03 -0400 Subject: [PATCH] Made Keystones independent --- 10InchRackGenerator.scad | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/10InchRackGenerator.scad b/10InchRackGenerator.scad index f0bee05..5a78d54 100644 --- a/10InchRackGenerator.scad +++ b/10InchRackGenerator.scad @@ -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 @@ -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(); + } } } }