From: Ian Jackson Date: Mon, 2 Jan 2017 13:47:22 +0000 (+0000) Subject: sewing-table: Abolish InterlockNegative in favour of a parameter (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=382eed97b2d7d74ff8228bd9d0ce2f96f2323dac sewing-table: Abolish InterlockNegative in favour of a parameter (nfc) --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index b5ee987..d1d3d94 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -150,14 +150,11 @@ module InterlockCore(r, plusth, ymir) { } } -module InterlockNegative(this_cnr, right_cnr) { +module Interlock(this_cnr, right_cnr, negative=0) { INREFFRAME(this_cnr, right_cnr) - InterlockCore(interlock_negative_rad, 1, 0); -} - -module Interlock(this_cnr, right_cnr) { - INREFFRAME(this_cnr, right_cnr) - InterlockCore(interlock_rad, 0, 1); + InterlockCore(negative ? interlock_negative_rad : interlock_rad, + negative ? 1 : 0, + negative ? 0 : 1); } function TestPiece_holes2corners(holes) = @@ -173,7 +170,7 @@ module TestPiece1(){ ////toplevel corners = TestPiece_holes2corners(holes); difference(){ TileBase(corners[0], corners[2]); - InterlockNegative(corners[1], corners[2]); + Interlock(corners[1], corners[2], 1); } Posts(holes); RoundEdge(corners[0], corners[1]);