stabilizer cutout
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,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);
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user