From 813183a047c2dc80e368bc31a667e64e73ceb1ab Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 12 Nov 2023 21:57:41 -0500 Subject: Getting lots closer here for a v2 --- case/case.scad | 75 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 38 deletions(-) (limited to 'case') diff --git a/case/case.scad b/case/case.scad index 7faa804..55f3039 100644 --- a/case/case.scad +++ b/case/case.scad @@ -18,8 +18,9 @@ module keyboard_base_plate(pcb_width, pcb_length) { 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; + bottom_width = 2 * (pcb_clearance_edge) + pcb_width; + bottom_length = 2 * (pcb_clearance_edge) + pcb_length; + bottom_height = thickness; screw_holes = [ [ 4.8150, 85.7250], @@ -107,117 +108,115 @@ module keyboard_base_plate(pcb_width, pcb_length) { } /* Upper right corner */ - round_corner([thickness + pcb_clearance_edge + pcb_width, + /*round_corner([thickness + pcb_clearance_edge + pcb_width, thickness + pcb_clearance_edge + pcb_length, -thickness/2], - [90, 90, 90]); + [90, 90, 90]);*/ /* Lower right corner */ - round_corner([ thickness + pcb_clearance_edge + pcb_width, + /*round_corner([ thickness + pcb_clearance_edge + pcb_width, 0 - thickness - pcb_clearance_edge, -thickness/2], - [180, 90, 90]); + [180, 90, 90]);*/ /* Lower left corner */ - round_corner([0 - thickness - pcb_clearance_edge, + /*round_corner([0 - thickness - pcb_clearance_edge, 0 - thickness - pcb_clearance_edge, -thickness/2], - [-90, 90, 90]); + [-90, 90, 90]);*/ /* Upper left corner */ - round_corner([0 - thickness - pcb_clearance_edge, + /*round_corner([0 - thickness - pcb_clearance_edge, thickness + pcb_clearance_edge + pcb_length, -thickness/2], - [0, 90, 90]); + [0, 90, 90]);*/ /* Upper edge */ - round_edge([0 - thickness - pcb_clearance_edge, + /*round_edge([0 - thickness - pcb_clearance_edge, thickness + pcb_clearance_edge + pcb_length, -thickness/2], [0, 90, 0], - bottom_width); + bottom_width);*/ /* Right edge */ - round_edge([ thickness + pcb_clearance_edge + pcb_width, + /*round_edge([ thickness + pcb_clearance_edge + pcb_width, 0 - thickness - pcb_clearance_edge, -thickness/2], [270, 0, 0], - bottom_length); + bottom_length);*/ /* Lower edge */ - round_edge([0 - thickness - pcb_clearance_edge, + /*round_edge([0 - thickness - pcb_clearance_edge, 0 - thickness - pcb_clearance_edge, -thickness/2], [90, 180, 90], - bottom_width); + bottom_width);*/ /* Left edge */ - round_edge([0 - thickness - pcb_clearance_edge, + /*round_edge([0 - thickness - pcb_clearance_edge, 0 - thickness - pcb_clearance_edge, -thickness/2], [270, 90, 0], - bottom_length); + bottom_length);*/ /* Upper right wall corner */ - wall_corner([thickness + pcb_clearance_edge + pcb_width, + /*wall_corner([thickness + pcb_clearance_edge + pcb_width, thickness + pcb_clearance_edge + pcb_length, -thickness/2], [0, 0, 0], corner_radius, - wall_height); + wall_height);*/ /* Lower right wall corner */ - wall_corner([ thickness + pcb_clearance_edge + pcb_width, + /*wall_corner([ thickness + pcb_clearance_edge + pcb_width, 0 - thickness - pcb_clearance_edge, -thickness/2], [0, 0, 270], corner_radius, - wall_height); + wall_height);*/ /* Lower left wall corner */ - wall_corner([0 - thickness - pcb_clearance_edge, + /*wall_corner([0 - thickness - pcb_clearance_edge, 0 - thickness - pcb_clearance_edge, -thickness/2], [0, 0, 180], corner_radius, - wall_height); + wall_height);*/ /* Upper left wall corner */ - wall_corner([0 - thickness - pcb_clearance_edge, + /*wall_corner([0 - thickness - pcb_clearance_edge, thickness + pcb_clearance_edge + pcb_length, -thickness/2], [0, 0, 90], corner_radius, - wall_height); + wall_height);*/ /* Upper wall */ - side([0 - thickness - pcb_clearance_edge, - pcb_clearance_edge + pcb_length + corner_radius, - -thickness/2], + side([-pcb_clearance_edge, + pcb_clearance_edge + pcb_length, + -thickness/2], [wall_width, thickness, wall_height]); /* Right wall */ - side([pcb_clearance_edge + pcb_width + corner_radius, - 0 - thickness - pcb_clearance_edge, + side([ pcb_clearance_edge + pcb_width, + -pcb_clearance_edge, -thickness/2], [thickness, wall_length, wall_height]); /* Lower wall */ - side([0 - thickness - pcb_clearance_edge, - 0 - thickness - pcb_clearance_edge - corner_radius, + side([-pcb_clearance_edge, + -pcb_clearance_edge - thickness, -thickness/2], [wall_width, thickness, wall_height]); /* Left wall */ - side([0 - thickness - pcb_clearance_edge - corner_radius, - 0 - thickness - pcb_clearance_edge, + side([-thickness - pcb_clearance_edge, + -pcb_clearance_edge, -thickness/2], [thickness, wall_length, wall_height]); /* Bottom plate */ - side([0 - thickness - pcb_clearance_edge, - 0 - thickness - pcb_clearance_edge, - 0 - thickness], + side([-pcb_clearance_edge, -pcb_clearance_edge, -thickness], [bottom_width, bottom_length, thickness]); /* Screw holes */ -- cgit v1.2.3