summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-13 22:09:07 -0500
committerXANTRONIX Development2023-11-13 22:09:07 -0500
commita2fac245a921f760874cbd6e1406aa92e65438cd (patch)
tree90469b7f6c9bfa306d264ae0f8deaa718b1dad0f /case
parent59ab05cf32b162d5f21cabfd9a971662bf224720 (diff)
downloadxantronix-z32-a2fac245a921f760874cbd6e1406aa92e65438cd.tar.gz
xantronix-z32-a2fac245a921f760874cbd6e1406aa92e65438cd.tar.bz2
xantronix-z32-a2fac245a921f760874cbd6e1406aa92e65438cd.zip
*evil cackling*
Diffstat (limited to 'case')
-rw-r--r--case/top.scad23
1 files changed, 15 insertions, 8 deletions
diff --git a/case/top.scad b/case/top.scad
index 8ce26a6..e7e059d 100644
--- a/case/top.scad
+++ b/case/top.scad
@@ -14,14 +14,6 @@ accent_y_stride = 19.0500;
accent_y_bottom = 12.0000;
/* last accent is 4mm from top of case */
-fin_width = 2.0000;
-fin_length = 2.0000;
-fin_height = 12.0000;
-fin_gap_width = 2.0000;
-fin_x_stride = 2.0000;
-fin_x_first = 139.7500;
-fin_count = 32;
-
key_switch_width = 19.0500;
key_switch_length = 19.0500;
keyboard_width = key_switch_width * 13.5;
@@ -29,6 +21,14 @@ keyboard_length = key_switch_length * 5.0;
keyboard_x_offset = 12.2500;
keyboard_y_offset = 12.2500;
+fin_width = 2.0000;
+fin_gap_width = 2.0000;
+fin_gap_length = 2.0000;
+fin_gap_height = 12.0000;
+fin_gap_count = 33;
+fin_gap_x_first = keyboard_x_offset + keyboard_width - fin_gap_count * (fin_width + fin_gap_width);
+fin_gap_y_offset = case_length_bottom - fin_gap_length;
+
difference() {
square([case_width_bottom, case_length_bottom], false);
translate([keyboard_x_offset, keyboard_y_offset, 0])
@@ -38,5 +38,12 @@ difference() {
translate([0, y, 0])
square([case_width_bottom, accent_width], false);
}
+
+ for (i = [0:fin_gap_count]) {
+ x = fin_gap_x_first + (i * (fin_width + fin_gap_width));
+
+ translate([x, fin_gap_y_offset, 0])
+ square([fin_gap_width, fin_gap_length], false);
+ }
}