Make sure upper wall has appropriate lip

This commit is contained in:
XANTRONIX 2023-11-17 17:09:14 -05:00
parent 531dc6e201
commit ee06ae635b
2 changed files with 12 additions and 7 deletions

View file

@ -1,5 +1,7 @@
wall_width = 2.5000; wall_width = 2.5000;
wall_height = 17.2500; wall_width_upper = 1.5000;
wall_lip_upper = 3.0000;
wall_height = 17.2500;
case_width_top = 317.5000; case_width_top = 317.5000;
case_width_bottom = 319.0000; case_width_bottom = 319.0000;

View file

@ -181,7 +181,7 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
support([left_support_length + 2*eps, support_height], support_width); support([left_support_length + 2*eps, support_height], support_width);
} }
} }
module logotype() { module logotype() {
module logotype_text(size) { module logotype_text(size) {
size_ratio = 1/5; size_ratio = 1/5;
@ -193,7 +193,7 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
} }
size = 10; size = 10;
translate([keyboard_x_offset, translate([keyboard_x_offset,
keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width, keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width,
wall_height - accent_depth]) wall_height - accent_depth])
@ -224,10 +224,13 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
module body() { module body() {
translate([0, 0, wall_height - wall_width]) translate([0, 0, wall_height - wall_width])
fascia(); fascia();
/* Upper */ /* Upper */
translate([0, case_length_bottom - wall_width, 0]) translate([wall_width, case_length_bottom - wall_width_upper, 0])
cube([case_width_bottom, wall_width, wall_height], false); cube([case_width_bottom - 2*wall_width, wall_width_upper, wall_lip_upper], false);
translate([0, case_length_bottom - wall_width, wall_lip_upper])
cube([case_width_bottom, wall_width, wall_height - wall_lip_upper], false);
/* Right */ /* Right */
translate([case_width_bottom - wall_width, 0, 0]) translate([case_width_bottom - wall_width, 0, 0])