From: Ian Jackson Date: Sat, 3 Jun 2017 18:51:39 +0000 (+0100) Subject: sewing-table: RoundCorner: change definition to take left cnr too X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0d324b3ae4898ca3bfece00bee629f23db530b1f;p=reprap-play.git sewing-table: RoundCorner: change definition to take left cnr too We do not actually use this yet so nfc When we do use it all existing call sites will become wrong --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index ca06e6b..dc4e056 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -238,10 +238,11 @@ module RoundEdge(left_cnr, right_cnr) { } module RoundCornerCut(ci) { - // ci should be [this_cnr, right_cnr] + // ci should be [this_cnr, right_cnr, left_cnr] // where right_cnr is to the right (ie, anticlockwise) this_cnr = ci[0]; right_cnr = ci[1]; + left_cnr = ci[2]; offr= round_cnr_rad - round_edge_rad; INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE { difference(){ @@ -255,6 +256,7 @@ module RoundCornerCut(ci) { module RoundCornerAdd(ci) { this_cnr = ci[0]; right_cnr = ci[1]; + left_cnr = ci[2]; bigr = round_cnr_rad - round_edge_rad; INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE { intersection(){