chiark / gitweb /
sewing-table: InterlockEdgePlan: add dosquare parameter (nfc)
[reprap-play.git] / sewing-table.scad.m4
index c2ae19d6712084357c91af1b4b87850e16102fcc..0603a0a0c335d6c2081d7ee8197b4a893bf03926 100644 (file)
@@ -150,7 +150,7 @@ module InterlockLobePlan(negative) {
   }
 }
 
   }
 }
 
-module InterlockEdgePlan(negative, nlobes, length) {
+module InterlockEdgePlan(negative, nlobes, length, dosquare=true) {
   for (lobei = [ 0 : nlobes-1 ]) {
     lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
     translate([lobex, 0, 0]) {
   for (lobei = [ 0 : nlobes-1 ]) {
     lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
     translate([lobex, 0, 0]) {
@@ -158,11 +158,13 @@ module InterlockEdgePlan(negative, nlobes, length) {
     }
   }
 
     }
   }
 
-  iadj = interlock_sq_adj;
-  slotshorter = negative ? 0 : interlock_fine_lenslop;
-  mirror([0, negative])
-    translate([slotshorter, iadj])
-    square([length - slotshorter*2, interlock_fine + iadj*2]);
+  if (dosquare) {
+    iadj = interlock_sq_adj;
+    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) {
 }
 
 module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {