chiark / gitweb /
sewing-table: Interlock: transpose extrude and iteration (nfc)
[reprap-play.git] / sewing-table.scad.m4
index dc94aae3cce1ecc718120db6b3b03b46fa6f3f0e..04e45985d0a003bdcb8e193144f529c3f43e030a 100644 (file)
@@ -145,12 +145,12 @@ module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {
   ymir = negative ? 0 : 1;
 
   INREFFRAME(left_cnr, right_cnr) {
-    for (lobei = [ 0 : nlobes-1 ]) {
-      lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
-      translate([lobex, 0, 0]) {
   translate([0, 0, plusth]){
     mirror([0,0,1]){
       linear_extrude(height=tile_th+plusth*2, convexity=10){
+    for (lobei = [ 0 : nlobes-1 ]) {
+      lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
+      translate([lobex, 0, 0]) {
        InterlockLobePlan(r, ymir);
       }
     }