summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-16 18:29:22 -0500
committerXANTRONIX Development2023-11-16 18:29:22 -0500
commitd730208b81b41638b4b366e11f76350ad8e5cd8d (patch)
tree1b1728ea80b02184ffa99aa5d16373ac66d8c83f
parenta5cf93b8d678ce3d5ecce1eab174f09dbe85b8d5 (diff)
downloadxantronix-z32-d730208b81b41638b4b366e11f76350ad8e5cd8d.tar.gz
xantronix-z32-d730208b81b41638b4b366e11f76350ad8e5cd8d.tar.bz2
xantronix-z32-d730208b81b41638b4b366e11f76350ad8e5cd8d.zip
idk that's better somehow
-rw-r--r--case/top.scad18
1 files changed, 9 insertions, 9 deletions
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;