Might be good?

This commit is contained in:
XANTRONIX 2023-11-16 17:15:15 -05:00
parent f9dac16c78
commit a5cf93b8d6

View file

@ -107,8 +107,8 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
];
for (post = posts) {
translate([post[0], post[1], wall_height - wall_width - post[2]])
screw_post(post[2]);
translate([post[0], post[1], wall_height - wall_width - post[2] - eps])
screw_post(post[2] + eps);
}
}
@ -196,22 +196,22 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
for (x = [0: support_x_interval: keyboard_width + 2 * wall_width]) {
translate([support_x_offset + x,
upper_support_y_offset,
upper_support_y_offset - eps,
wall_height - wall_width])
support([upper_support_length, keyboard_switch_height], support_width);
support([upper_support_length + 2*eps, keyboard_switch_height], support_width);
translate([support_x_offset + x,
lower_support_y_offset,
lower_support_y_offset - eps,
wall_height - wall_width])
support([lower_support_length, keyboard_switch_height], support_width);
support([lower_support_length + 2*eps, keyboard_switch_height], support_width);
}
for (y = [0: support_y_interval: keyboard_length + 2 * wall_width]) {
translate([right_support_x_offset,
translate([right_support_x_offset - eps,
support_y_offset + y - wall_width + support_width,
wall_height - wall_width])
rotate([0, 0, -90])
support([right_support_length, keyboard_switch_height], support_width);
support([right_support_length + 2*eps, keyboard_switch_height], support_width);
translate([left_support_x_offset - eps,
support_y_offset + y - wall_width + support_width,
@ -227,17 +227,17 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
/* Upper */
translate([0, case_length_bottom - wall_width, 0])
cube([case_width_bottom, wall_width, wall_height - wall_width], false);
cube([case_width_bottom, wall_width, wall_height], false);
/* Right */
translate([case_width_bottom - wall_width, 0, 0])
cube([wall_width, case_length_bottom, wall_height - wall_width], false);
cube([wall_width, case_length_bottom, wall_height], false);
/* Lower */
cube([case_width_bottom, wall_width, wall_height - wall_width], false);
cube([case_width_bottom, wall_width, wall_height], false);
/* Left */
cube([wall_width, case_length_bottom, wall_height - wall_width], false);
cube([wall_width, case_length_bottom, wall_height], false);
}
module screw_holes() {