chiark / gitweb /
sewing-table: TEST commitid: put roughly in middle of the other edge
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 May 2017 01:11:08 +0000 (02:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 May 2017 01:11:08 +0000 (02:11 +0100)
sewing-table.scad.m4

index 80d86c8..9bc6b02 100644 (file)
@@ -175,10 +175,10 @@ module TileBase(botleft, topright){
     }
     if (TEST) {
       crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2;
-      cidsz = [ size[0] - 2*crossoff, thehd[1] ];
-      translate( concat(botleft + [crossoff, 0] + cidsz, [0]) )
-       rotate([0,0,180])
-       Commitid_BestCount(cidsz);
+      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]))