summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-12 21:33:04 -0500
committerXANTRONIX Development2023-11-12 21:33:04 -0500
commit109008dd6fd40a9a4c728c6f3e1dcd4d4f269285 (patch)
treebf72fb7e2a4ea33ee22e489b5cff7fbba86d3095
parent02a787efd1160b02dcece4618a772b30136ce583 (diff)
downloadxantronix-z32-109008dd6fd40a9a4c728c6f3e1dcd4d4f269285.tar.gz
xantronix-z32-109008dd6fd40a9a4c728c6f3e1dcd4d4f269285.tar.bz2
xantronix-z32-109008dd6fd40a9a4c728c6f3e1dcd4d4f269285.zip
A bit more sane
-rw-r--r--case/case.scad13
1 files changed, 8 insertions, 5 deletions
diff --git a/case/case.scad b/case/case.scad
index 769387a..7faa804 100644
--- a/case/case.scad
+++ b/case/case.scad
@@ -10,11 +10,14 @@ module keyboard_base_plate(pcb_width, pcb_length) {
pcb_screw_hole_diameter = 1.5;
thickness = 1.75;
- wall_height = 14.0;
corner_radius = thickness / 2.0;
case_color = [0.5, 0.5, 0.5, 1.0];
+ wall_width = pcb_width + 2 * pcb_clearance_edge;
+ wall_length = pcb_length + 2 * pcb_clearance_edge;
+ wall_height = 14.0;
+
bottom_width = 2 * (pcb_clearance_edge + thickness) + pcb_width;
bottom_length = 2 * (pcb_clearance_edge + thickness) + pcb_length;
@@ -191,25 +194,25 @@ module keyboard_base_plate(pcb_width, pcb_length) {
side([0 - thickness - pcb_clearance_edge,
pcb_clearance_edge + pcb_length + corner_radius,
-thickness/2],
- [bottom_width, thickness, wall_height]);
+ [wall_width, thickness, wall_height]);
/* Right wall */
side([pcb_clearance_edge + pcb_width + corner_radius,
0 - thickness - pcb_clearance_edge,
-thickness/2],
- [thickness, bottom_length, wall_height]);
+ [thickness, wall_length, wall_height]);
/* Lower wall */
side([0 - thickness - pcb_clearance_edge,
0 - thickness - pcb_clearance_edge - corner_radius,
-thickness/2],
- [bottom_width, thickness, wall_height]);
+ [wall_width, thickness, wall_height]);
/* Left wall */
side([0 - thickness - pcb_clearance_edge - corner_radius,
0 - thickness - pcb_clearance_edge,
-thickness/2],
- [thickness, bottom_length, wall_height]);
+ [thickness, wall_length, wall_height]);
/* Bottom plate */
side([0 - thickness - pcb_clearance_edge,