From 7e15e10885db2dcfff21fd9bbf94e14e91127aba Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 25 May 2017 02:26:30 +0100 Subject: [PATCH] sewing-table: commitid (non-TEST): centering --- sewing-table.scad.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 458d00e..3d4597a 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; -- 2.30.2