diff options
author | XANTRONIX Development | 2023-11-15 18:16:58 -0500 |
---|---|---|
committer | XANTRONIX Development | 2023-11-15 18:16:58 -0500 |
commit | feb53663fe6c3930aeef49125c157fc6c52896ef (patch) | |
tree | 9e8e29459e2cb5942c031b57282f53f847e941e1 | |
parent | 84b2fb6409e8efa15b5626a9ef6fb6bd88968743 (diff) | |
download | xantronix-z32-feb53663fe6c3930aeef49125c157fc6c52896ef.tar.gz xantronix-z32-feb53663fe6c3930aeef49125c157fc6c52896ef.tar.bz2 xantronix-z32-feb53663fe6c3930aeef49125c157fc6c52896ef.zip |
Got all the upper supports in!
-rw-r--r-- | case/top.scad | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/case/top.scad b/case/top.scad index 34dd6dc..62473bd 100644 --- a/case/top.scad +++ b/case/top.scad @@ -137,6 +137,8 @@ module top_case(key_switch_sizes, pcb_screw_holes) { cube([wall_width, case_length_bottom, wall_height - wall_width], false); /* Upper vertical supports */ + upper_support_x_interval = (keyboard_width + wall_width + 1.25) / 6; + upper_support_length = case_length_bottom - keyboard_length - keyboard_y_offset @@ -148,11 +150,13 @@ module top_case(key_switch_sizes, pcb_screw_holes) { upper_support_x_offset = keyboard_x_offset - wall_width; - translate([upper_support_x_offset, - upper_support_y_offset, - wall_height - wall_width]) - support([upper_support_length, keyboard_switch_height], - 1.25); + for (x = [0: upper_support_x_interval: keyboard_width + 2 * wall_width]) { + translate([upper_support_x_offset + x, + upper_support_y_offset, + wall_height - wall_width]) + support([upper_support_length, keyboard_switch_height], + 1.25); + } } module screw_holes() { |