chiark / gitweb /
sewing-table: InterlockEdge support nlobes=1
[reprap-play.git] / sewing-table.scad.m4
index 38638ac0f5f15bd0b2786a9f6d9601e396c19abb..3311bc377df2679a7a1ed9197e92eb31f5342752 100644 (file)
@@ -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);
     }