From: Ian Jackson Date: Mon, 2 Jan 2017 15:51:12 +0000 (+0000) Subject: sewing-table: InterlockEdgePlan: add dosquare parameter (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=84971d9157edb672f42c6ceadffef554f3f7430c sewing-table: InterlockEdgePlan: add dosquare parameter (nfc) --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index c2ae19d..0603a0a 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -150,7 +150,7 @@ module InterlockLobePlan(negative) { } } -module InterlockEdgePlan(negative, nlobes, length) { +module InterlockEdgePlan(negative, nlobes, length, dosquare=true) { for (lobei = [ 0 : nlobes-1 ]) { lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0); translate([lobex, 0, 0]) { @@ -158,11 +158,13 @@ module InterlockEdgePlan(negative, nlobes, length) { } } - iadj = interlock_sq_adj; - slotshorter = negative ? 0 : interlock_fine_lenslop; - mirror([0, negative]) - translate([slotshorter, iadj]) - square([length - slotshorter*2, interlock_fine + iadj*2]); + if (dosquare) { + iadj = interlock_sq_adj; + slotshorter = negative ? 0 : interlock_fine_lenslop; + mirror([0, negative]) + translate([slotshorter, iadj]) + square([length - slotshorter*2, interlock_fine + iadj*2]); + } } module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {