summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,