chiark / gitweb /
sewing-table: InterlockEdge: remove a spurious z value
[reprap-play.git] / sewing-table.scad.m4
index b696ddc47a08bf53be0551e0d470fe40df1f2bd4..856035894f66a8a4878ad097b2880f87026fb19e 100644 (file)
@@ -19,6 +19,9 @@ screw_big_len = 4.0;
 round_edge_rad = 2.0;
 
 interlock_dia = 10;
+interlock_fine = 1.0;
+
+interlock_fine_lenslop = 1.0;
 
 demo_slop = 0.1;
 
@@ -145,12 +148,19 @@ module InterlockLobePlan(negative) {
 }
 
 module InterlockEdgePlan(negative, nlobes, length) {
+  iadj = 0.1;
+
   for (lobei = [ 0 : nlobes-1 ]) {
     lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
     translate([lobex, 0, 0]) {
       InterlockLobePlan(negative);
     }
   }
+
+  slotshorter = negative ? 0 : interlock_fine_lenslop;
+  mirror([0, negative])
+    translate([slotshorter, iadj])
+    square([length - slotshorter*2, interlock_fine + iadj*2]);
 }
 
 module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {
@@ -231,7 +241,7 @@ module Tile02(){ ////toplevel
   RoundEdge(c[0], c[1]);
   RoundEdge(c[3], c[0]);
   RoundLeftCorner(c[0], c[1]);
-  InterlockEdge(c[2], c[3], 0, 2);
+  InterlockEdge(c[2], c[3], 0);
 }
 
 module Tile12(){ ////toplevel
@@ -241,6 +251,7 @@ module Tile12(){ ////toplevel
   posts = Rectangle_corners2posts(c);
   difference(){
     TileBase(c[0], c[2]);
+    InterlockEdge(c[0], c[1], 1);
   }
   Posts(posts);
   RoundEdge(c[2], c[3]);