X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=sewing-table.scad.m4;h=458d00e7ec1378c2c610ad07e2ed02c2e5568163;hb=af63f80d67127c065bb693cecdba1eaec187627c;hp=794252883002726333e9da52a0eab833f23bb9e6;hpb=65634175dd5002a6ab030d901cccc8a6f67b5af4;p=reprap-play.git diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 7942528..458d00e 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -167,15 +167,19 @@ module TileBase(botleft, topright){ translate(concat(botleft, [0])) cube(concat(size, [tile_th])); if (!TEST) { + cidsz = topright_post-botleft_post + + [-post_dia,-post_dia] + + [0, thehd[1]]; translate( concat(botleft_post, [ -tile_th ]) + 0.5 * [ post_dia, post_dia, 0 ] ) - Commitid_BestCount_M( topright_post-botleft_post - + [-post_dia,-post_dia] - + [0, thehd[1]]); + Commitid_BestCount_M(cidsz); } if (TEST) { - translate( concat(botleft + [thehd[0], 0], [0]) ) - Commitid_BestCount([ size[0] - thehd[0]*2, thehd[1] ]); + crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2; + cidsz = [ thehd[0], size[1] - 2*crossoff ]; + cidszr = [ cidsz[0], min(cidsz[1], 50) ]; + translate( concat(botleft + [0, crossoff] + (cidsz-cidszr)/2, [0]) ) + Commitid_BestCount(cidszr); difference(){ mirror([0,0,1]) { translate(concat(botleft + [test_edge,test_edge], [test_tile_th]))