From: Ian Jackson Date: Mon, 2 Jan 2017 14:50:49 +0000 (+0000) Subject: sewing-table: fold in InterlockLobeCore (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=e488ccdb7b18fc0b32f7579cce4d384f371e15d9 sewing-table: fold in InterlockLobeCore (nfc) --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 9880e2b..dc94aae 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -139,10 +139,15 @@ module InterlockLobePlan(r, ymir) { } } -module InterlockLobeCore(negative=0) { +module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) { r = negative ? interlock_negative_rad : interlock_rad; plusth = negative * 1.0; ymir = negative ? 0 : 1; + + INREFFRAME(left_cnr, right_cnr) { + for (lobei = [ 0 : nlobes-1 ]) { + lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0); + translate([lobex, 0, 0]) { translate([0, 0, plusth]){ mirror([0,0,1]){ linear_extrude(height=tile_th+plusth*2, convexity=10){ @@ -150,14 +155,7 @@ module InterlockLobeCore(negative=0) { } } } -} - -module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) { - INREFFRAME(left_cnr, right_cnr) { - for (lobei = [ 0 : nlobes-1 ]) { - lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0); - translate([lobex, 0, 0]) - InterlockLobeCore(negative); + } } } }