chiark / gitweb /
sewing-table: TEST commitid: rotate so counter is in edgy bit
[reprap-play.git] / sewing-table.scad.m4
index e4ead979bb95194198eacc7947d3b642f7aa5d00..80d86c84e3dc2d2c09aec5b2201c1b1c0c354642 100644 (file)
@@ -98,6 +98,7 @@ reartablet_y = 5;
 
 frontcurve_side_skew = 3.5 / 72;
 frontcurve_avoid_y = 70;
+frontcurve_z_slop = 0.75;
 
 // calculated
 
@@ -129,6 +130,9 @@ interlock_sq_adj = 0.2; // arbitrary
 
 first_front = machine_front_profile[len(machine_front_profile)-1];
 
+m4_define(`POST_TCROSSSZ',
+          `2*( tile_hard_edge_hole_dist - test_edge + 1 )')
+
 module Post(){
   mirror([0,0,1]) {
     difference(){
@@ -139,10 +143,9 @@ module Post(){
       }
     }
     if (TEST) {
-      tsz = tile_hard_edge_hole_dist - test_edge + 1;
       translate([0,0, tile_th/2]) {
-       cube([post_dia, tsz*2, tile_th], center=true);
-       cube([tsz*2, post_dia, tile_th], center=true);
+       cube([post_dia,      POST_TCROSSSZ, tile_th], center=true);
+       cube([POST_TCROSSSZ, post_dia,      tile_th], center=true);
       }
     }
   }
@@ -171,8 +174,11 @@ module TileBase(botleft, topright){
                              + [0, thehd[1]]);
     }
     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 = [ size[0] - 2*crossoff, thehd[1] ];
+      translate( concat(botleft + [crossoff, 0] + cidsz, [0]) )
+       rotate([0,0,180])
+       Commitid_BestCount(cidsz);
       difference(){
        mirror([0,0,1]) {
          translate(concat(botleft + [test_edge,test_edge], [test_tile_th]))
@@ -445,7 +451,7 @@ module Machine_Curves(){ ////toplevel
   }
   translate([ tile01_tr[0] - cutout_l_end_x + rearedge_len,
              cutout_tile11_y,
-             0 ]){
+             frontcurve_z_slop ]){
     translate([ 0, -first_front[0] , 0 ])
       multmatrix([[1, -frontcurve_side_skew, 0, 0],
                  [0,  1,   0, 0],