From d730208b81b41638b4b366e11f76350ad8e5cd8d Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 16 Nov 2023 18:29:22 -0500 Subject: idk that's better somehow --- case/top.scad | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'case') diff --git a/case/top.scad b/case/top.scad index 44f4ba1..6e69175 100644 --- a/case/top.scad +++ b/case/top.scad @@ -240,15 +240,6 @@ module top_case(key_switch_sizes, pcb_screw_holes) { cube([wall_width, case_length_bottom, wall_height], false); } - module screw_holes() { - pcb_screw_diameter = 2.5; - - for (screw_hole = pcb_screw_holes) { - translate([screw_hole[0], screw_hole[1], -eps]) - cylinder(h=wall_width+2*eps, d=pcb_screw_diameter); - } - } - module keyboard_deck() { key_switch_footprint = [15.25, 15.25]; @@ -256,6 +247,15 @@ module top_case(key_switch_sizes, pcb_screw_holes) { function slice(v, x, y) = [for (i=[x:y]) v[i]]; function addrange(v, x, y) = add(slice(v, x, y)); + module screw_holes() { + pcb_screw_diameter = 2.5; + + for (screw_hole = pcb_screw_holes) { + translate([screw_hole[0], screw_hole[1], -eps]) + cylinder(h=wall_width+2*eps, d=pcb_screw_diameter); + } + } + module key_switch_plate(key_switch_size) { plate_width = keyboard_switch_width * key_switch_size; plate_length = keyboard_switch_length; -- cgit v1.2.3