X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=sewing-table.scad.m4;h=1f6fad76c8f93182b6ddace7e149264ff4c661e7;hb=37a2449dd58d73f286ffccc01b7066dec007838d;hp=458d00e7ec1378c2c610ad07e2ed02c2e5568163;hpb=af63f80d67127c065bb693cecdba1eaec187627c;p=reprap-play.git diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 458d00e..1f6fad7 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -170,9 +170,12 @@ module TileBase(botleft, topright){ cidsz = topright_post-botleft_post + [-post_dia,-post_dia] + [0, thehd[1]]; + cidszr = [ min(cidsz[0],50), min(cidsz[1],50) ]; + echo("CID",cidsz,cidszr); translate( concat(botleft_post, [ -tile_th ]) - + 0.5 * [ post_dia, post_dia, 0 ] ) - Commitid_BestCount_M(cidsz); + + 0.5 * [ post_dia, post_dia, 0 ] + + 0.5 * concat( cidsz - cidszr, [ 0 ]) ) + Commitid_BestCount_M(cidszr); } if (TEST) { crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2; @@ -501,7 +504,14 @@ module Machine(){ ////toplevel Machine_Arm(); Machine_Curves(); } - + +module FitTest(){ ////toplevel + difference(){ + cube([200,200,200]); + #Machine(); + } +} + 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