From: Ian Jackson Date: Sun, 21 May 2017 21:20:51 +0000 (+0100) Subject: sewing-table: some comments (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=16187156ae630cf20952fc84f67f01f9a3f6ca8d sewing-table: some comments (nfc) --- diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 2995d9f..3b628e4 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -143,6 +143,8 @@ module RoundEdge(left_cnr, right_cnr) { } module RoundCornerCut(ci) { + // ci should be [this_cnr, right_cnr] + // where right_cnr is to the right (ie, anticlockwise) this_cnr = ci[0]; right_cnr = ci[1]; offr= round_cnr_rad - round_edge_rad; @@ -292,6 +294,8 @@ module TestDemo(){ ////toplevel } function Rectangle_corners(c0, sz) = + // returns the corners of a rectangle from c0 to c0+sz + // if sz is positive, the corners are anticlockwise starting with c0 [ c0 + [ 0, 0 ], c0 + [ sz[0], 0 ], c0 + [ sz[0], sz[1] ],