From 88810dbc539b5ef72f84b06870594bf4448dc1f4 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sun, 1 Mar 2026 18:37:59 +0100 Subject: [PATCH] stabilizer cutout --- backplate.scad | 11 ++++++----- backplate_numpad.scad | 22 ++++++++++++++-------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/backplate.scad b/backplate.scad index 4147114..28d4e91 100644 --- a/backplate.scad +++ b/backplate.scad @@ -14,6 +14,10 @@ notch_height = 4.0; plate_thickness = 1.5; margin = 5.0; +// Stabilizer +stab_w = 6.9; +stab_h = 11.2; + // --- Calculated Plate Dimensions --- plate_width = (columns - 1) * u_size + switch_outer_width + (margin * 2); plate_height = (rows - 1) * u_size + switch_total_height + (margin * 2); @@ -35,11 +39,8 @@ module stabilizer_cutout(wire_len_u) { union() { switch_cutout(); for(m = [-1, 1]) { - translate([m * dist/2, 0, 0]) { - cube([3.3, 14.0, plate_thickness + 2], center=true); - translate([m * 0.5, 0, 0]) - cube([4.3, 8.0, plate_thickness + 2], center=true); - } + translate([m * dist/2, 0, 0]) + cube([stab_w, stab_h, plate_thickness + 2], center=true); } } } diff --git a/backplate_numpad.scad b/backplate_numpad.scad index 15d78e6..4887af9 100644 --- a/backplate_numpad.scad +++ b/backplate_numpad.scad @@ -9,7 +9,11 @@ switch_total_height = 14.2; notch_height = 4.0; plate_thickness = 1.5; -margin = 5.0; +margin = 5.0; + +// Stabilizer +stab_w = 6.9; +stab_h = 11.2; // --- Calculated Plate Dimensions --- plate_width = (columns - 1) * u_size + switch_outer_width + (margin * 2); @@ -30,13 +34,15 @@ module stabilizer_cutout(is_vertical=false) { dist = 23.85; // Standard 2u stabilizer distance union() { switch_cutout(); - rotate([0, 0, is_vertical ? 90 : 0]) { - for(m = [-1, 1]) { - translate([m * dist/2, 0, 0]) { - cube([3.3, 14.0, plate_thickness + 2], center=true); - translate([m * 0.5, 0, 0]) - cube([4.3, 8.0, plate_thickness + 2], center=true); - } + + // Stabilizer housing cutouts + for(m = [-1, 1]) { + if (is_vertical) { + translate([0, m * dist/2, 0]) + cube([stab_h, stab_w, plate_thickness + 2], center=true); + } else { + translate([m * dist/2, 0, 0]) + cube([stab_w, stab_h, plate_thickness + 2], center=true); } } }