From 779137f5450fc5206beebeeaf34284db333dc1ac Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 11 Nov 2023 20:55:34 -0500 Subject: Move screw holes into thing --- case/case.scad | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/case/case.scad b/case/case.scad index 04241a9..9dc8c81 100644 --- a/case/case.scad +++ b/case/case.scad @@ -3,29 +3,7 @@ $fn = 72; pcb_width = 257.175; pcb_height = 95.250; -screw_holes = [ - [ 4.8150, 85.6188], - [ 47.4822, 85.6188], - [ 85.8150, 85.6188], - [123,8150, 85.6188], - [161.8150, 85.6188], - [199.8150, 85.6188], - [251.3150, 67.1188], - [ 22.5650, 47.6187], - [118.8150, 47.6187], - [157.3150, 47.6187], - [ 4.7500, 28.7500], - [ 29.7500, 28.7500], - [227.8150, 28.7500], - [251.8150, 28.7500], - [ 42.8150, 9.1188], - [ 85.8150, 9.1188], - [123.8150, 9.1188], - [161.8150, 9.1188], - [200.3150, 9.1188] -]; - -module keyboard_base_plate(pcb_width, pcb_height, screw_holes=[]) { +module keyboard_base_plate(pcb_width, pcb_height) { pcb_clearance_edge = 1.0; pcb_clearance_bottom = 2.0; @@ -35,6 +13,28 @@ module keyboard_base_plate(pcb_width, pcb_height, screw_holes=[]) { wall_height = 14.0; corner_radius = thickness / 2.0; + screw_holes = [ + [ 4.8150, 85.6188], + [ 47.4822, 85.6188], + [ 85.8150, 85.6188], + [123,8150, 85.6188], + [161.8150, 85.6188], + [199.8150, 85.6188], + [251.3150, 67.1188], + [ 22.5650, 47.6187], + [118.8150, 47.6187], + [157.3150, 47.6187], + [ 4.7500, 28.7500], + [ 29.7500, 28.7500], + [227.8150, 28.7500], + [251.8150, 28.7500], + [ 42.8150, 9.1188], + [ 85.8150, 9.1188], + [123.8150, 9.1188], + [161.8150, 9.1188], + [200.3150, 9.1188] + ]; + module round_corner(translation, rotation) { translate(translation) rotate(rotation) @@ -181,4 +181,4 @@ module keyboard_base_plate(pcb_width, pcb_height, screw_holes=[]) { } } -keyboard_base_plate(pcb_width, pcb_height, screw_holes); +keyboard_base_plate(pcb_width, pcb_height); -- cgit v1.2.3