summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-20 00:51:10 -0500
committerXANTRONIX Development2023-11-20 00:51:10 -0500
commite6c57772693c529094adcbd1e4b79d22c2b389b0 (patch)
tree47bf88d1d9963a1d9c31783c1180b2f4e500ce50 /case
parenta25823d06af9590a14d6891b1f92297183b3b767 (diff)
downloadxantronix-z32-e6c57772693c529094adcbd1e4b79d22c2b389b0.tar.gz
xantronix-z32-e6c57772693c529094adcbd1e4b79d22c2b389b0.tar.bz2
xantronix-z32-e6c57772693c529094adcbd1e4b79d22c2b389b0.zip
Make keyboard cutout optional
Diffstat (limited to 'case')
-rw-r--r--case/top.scad19
1 files changed, 12 insertions, 7 deletions
diff --git a/case/top.scad b/case/top.scad
index 3aabfb8..0ce979e 100644
--- a/case/top.scad
+++ b/case/top.scad
@@ -4,7 +4,7 @@ include <dimensions.scad>
include <support.scad>
include <keyboard.scad>
-module top_case() {
+module top_case(with_keyboard=false) {
keyboard_deck_z_offset = wall_height - keyboard_switch_height;
accent_width = 1.0000;
@@ -25,8 +25,10 @@ module top_case() {
difference() {
cube([case_width_bottom, case_length_bottom, wall_width]);
- translate([keyboard_x_offset, keyboard_y_offset, -eps])
- cube([keyboard_pcb_width, keyboard_pcb_length, wall_width + 2*eps]);
+ if (with_keyboard) {
+ translate([keyboard_x_offset, keyboard_y_offset, -eps])
+ cube([keyboard_pcb_width, keyboard_pcb_length, wall_width + 2*eps]);
+ }
}
}
@@ -205,11 +207,14 @@ module top_case() {
vents();
}
- supports();
screw_posts();
- translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset])
- keyboard_deck(wall_width);
+ if (with_keyboard) {
+ supports();
+
+ translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset])
+ keyboard_deck(wall_width);
+ }
}
-top_case();
+top_case(true);