chiark / gitweb /
ksafe-base: BoltHoles (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 02:33:27 +0000 (02:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 02:33:27 +0000 (02:33 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ksafe-base.scad

index 2e2a18a..8284afa 100644 (file)
@@ -44,6 +44,7 @@ dcover_edge_gap_more_width = 2.0; // each side
 // ----- calculated -----
 
 hsz = main_sz/2;
+cut = main_sz + 20;
 
 gppA = [0,0];
 gppB = gppA - [ wall_thick, 0 ];
@@ -288,17 +289,18 @@ module DCoverSupportAllowance(){
           dcover_slop_inside * 2 + 0.01 ]);
 }
 
-module KsafeBase(){ ////toplevel
-  cut = main_sz + 20;
+module BoltHoles(){
+  translate([0,0, -bolt_above -0.5 * bolthole_height])
+    cube(center=true, [ cut, bolthole_width, bolthole_height ]);
+}
 
+module KsafeBase(){ ////toplevel
   DCover();
 
   difference(){
     Box();
 
-    // bolt holes
-    translate([0,0, -bolt_above -0.5 * bolthole_height])
-      cube(center=true, [ cut, bolthole_width, bolthole_height ]);
+    BoltHoles();
 
     // string slot
     translate([ -cut,