chiark / gitweb /
sewing-table: Test uses hull, not minkowski
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 17:01:52 +0000 (18:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 17:01:52 +0000 (18:01 +0100)
sewing-table.scad.m4

index fa5af0f..0f556d2 100644 (file)
@@ -193,9 +193,11 @@ module TileBase(botleft, topright){
            cube(concat(topright_post-botleft_post, [tile_th+2]));
        }
        shufflesz = max(test_edge, tile_hard_edge_hole_dist)*2;
-       minkowski(){
-         Machine();
-         cube(shufflesz, center=true);
+       hull(){ // poor man's minkowski
+         for (xs=[-1,1]) for (ys=[-1,1]) for (zs=[-1,1]) {
+           translate([xs,ys,zs] * shufflesz)
+             Machine();
+         }
        }
       }
     }