summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-20 01:12:14 -0500
committerXANTRONIX Development2023-11-20 01:12:14 -0500
commitba7a24b16b18d4438fc92b6cc73d03a030de9dce (patch)
tree8e02fbf7b5c81a90598ce571372d05662d4d69f7
parent1e56b160af6540cd8942f91c27eae704fcd18e4d (diff)
downloadxantronix-z32-ba7a24b16b18d4438fc92b6cc73d03a030de9dce.tar.gz
xantronix-z32-ba7a24b16b18d4438fc92b6cc73d03a030de9dce.tar.bz2
xantronix-z32-ba7a24b16b18d4438fc92b6cc73d03a030de9dce.zip
Add supports for non-keyboard top case variant
-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();
}
}