chiark / gitweb /
sewing-table: FitTest wip
[reprap-play.git] / sewing-table.scad.m4
index 458d00e7ec1378c2c610ad07e2ed02c2e5568163..1f6fad76c8f93182b6ddace7e149264ff4c661e7 100644 (file)
@@ -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