From 109008dd6fd40a9a4c728c6f3e1dcd4d4f269285 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 12 Nov 2023 21:33:04 -0500 Subject: A bit more sane --- case/case.scad | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'case') 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, -- cgit v1.2.3