From: Ian Jackson Date: Mon, 2 Jan 2017 14:46:39 +0000 (+0000) Subject: sewing-table: InterlockEdge support nlobes=1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=8488c936f3033d8081bab504e245f674277be4d5 sewing-table: InterlockEdge support nlobes=1 --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 38638ac..3311bc3 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -160,7 +160,7 @@ module InterlockLobe(this_cnr, right_cnr, 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 / (nlobes-1); + lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0); translate([lobex, 0, 0]) InterlockLobeCore(negative); }