summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;