summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--case/top.scad23
1 files changed, 23 insertions, 0 deletions
diff --git a/case/top.scad b/case/top.scad
index d15c610..8288862 100644
--- a/case/top.scad
+++ b/case/top.scad
@@ -72,6 +72,27 @@ module top_case(with_keyboard=false) {
}
}
+ module supports() {
+ support_length_vert = case_length_bottom - 2 * wall_width;
+ support_length_horiz = case_width_bottom - 2 * wall_width;
+ support_height = 0.7500 * wall_height;
+ support_width = 1.2500;
+
+ support_x_interval = (case_width_bottom + 2 * wall_width - support_width) / 7;
+ support_y_interval = (case_length_bottom + 2 * wall_width - support_width) / 5;
+
+ for (x = [support_x_interval: support_x_interval: case_width_bottom - wall_width]) {
+ translate([x, wall_width - eps, wall_height - wall_width])
+ support([support_length_vert + 2*eps, support_height], support_width);
+ }
+
+ for (y = [support_y_interval: support_y_interval: case_length_bottom - wall_width]) {
+ translate([wall_width - eps, y, wall_height - wall_width])
+ rotate([0, 0, -90])
+ support([support_length_horiz + 2*eps, support_height], support_width);
+ }
+ }
+
module keyboard_supports() {
support_width = 1.2500;
support_height = keyboard_switch_height - wall_width;
@@ -213,6 +234,8 @@ module top_case(with_keyboard=false) {
translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset])
keyboard_deck(wall_width);
+ } else {
+ supports();
}
}