From e286b380a1a2a5f2e81df4bffa265f21feae66f0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 31 Dec 2014 12:35:10 +0000 Subject: [PATCH] knifeblock: move minx, maxx (nfc) --- knifeblock.scad | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/knifeblock.scad b/knifeblock.scad index 302dacb..da25c38 100644 --- a/knifeblock.scad +++ b/knifeblock.scad @@ -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(){ -- 2.30.2