chiark / gitweb /
sewing-table: make corners be cycles (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 13:42:57 +0000 (13:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 13:46:58 +0000 (13:46 +0000)
sewing-table.scad.m4

index 9b11413..b5ee987 100644 (file)
@@ -163,8 +163,8 @@ module Interlock(this_cnr, right_cnr) {
 function TestPiece_holes2corners(holes) =
   [ holes[0] + thehd_bl,
     holes[1] + thehd_br,
-    holes[0] + thehd_tl,
-    holes[1] + thehd_tr ];
+    holes[1] + thehd_tr,
+    holes[0] + thehd_tl ];
 
 module TestPiece1(){ ////toplevel
   holes = [ [-100, 0],
@@ -172,12 +172,12 @@ module TestPiece1(){ ////toplevel
            ];
   corners = TestPiece_holes2corners(holes);
   difference(){
-    TileBase(corners[0], corners[3]);
-    InterlockNegative(corners[1], corners[3]);
+    TileBase(corners[0], corners[2]);
+    InterlockNegative(corners[1], corners[2]);
   }
   Posts(holes);
   RoundEdge(corners[0], corners[1]);
-  RoundEdge(corners[2], corners[0]);
+  RoundEdge(corners[3], corners[0]);
   RoundLeftCorner(corners[0], corners[1]);
 }
 
@@ -186,10 +186,10 @@ module TestPiece2(){ ////toplevel
            [  50, 0]
            ];
   corners = TestPiece_holes2corners(holes);
-  TileBase(corners[0], corners[3]);
+  TileBase(corners[0], corners[2]);
   Posts(holes);
   RoundEdge(corners[0], corners[1]);
-  Interlock(corners[2], corners[0]);
+  Interlock(corners[3], corners[0]);
 }
 
 module Demo(){ ////toplevel