From: Ian Jackson Date: Wed, 31 Dec 2014 12:35:10 +0000 (+0000) Subject: knifeblock: move minx, maxx (nfc) X-Git-Tag: filamentspool-v2-release~268 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e286b380a1a2a5f2e81df4bffa265f21feae66f0;p=reprap-play.git knifeblock: move minx, maxx (nfc) --- 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(){