chiark / gitweb /
knifeblock: move minx, maxx (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Dec 2014 12:35:10 +0000 (12:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Dec 2014 12:35:10 +0000 (12:35 +0000)
knifeblock.scad

index 302dacb..da25c38 100644 (file)
@@ -30,6 +30,12 @@ screwabove = 15;
 side = minsidein + screwcsinkdia + minsideout;
 totaldepth = front + maxhandledepth + back;
 
+minkx = locations[0] -         widths[0]        /2;
+maxkx = locations[nknives-1] + widths[nknives-1]/2;
+
+minx = minkx - side;
+maxx = maxkx + side;
+
 module ImportTemplate(w,k,t) {
   fn = str("knifeblock-knives-t",k,t,".dxf");
   echo(fn);
@@ -70,12 +76,6 @@ module ScrewHole(){
 }
 
 module Block(){
-  minkx = locations[0] -         widths[0]        /2;
-  maxkx = locations[nknives-1] + widths[nknives-1]/2;
-
-  minx = minkx - side;
-  maxx = maxkx + side;
-
   sidemidx = minsideout + screwcsinkdia/2;
 
   difference(){