chiark / gitweb /
sewing-table: introduce a concat (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Jan 2017 21:46:49 +0000 (21:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Jan 2017 21:46:49 +0000 (21:46 +0000)
sewing-table.scad.m4

index 4d818ef..32d69b6 100644 (file)
@@ -57,9 +57,9 @@ module TileBase(botleft_post, topright_post){
   size = topright_post - botleft_post + thehd * 2;
   difference(){
     mirror([0,0,1])
-      translate([botleft[0], botleft[1], 0])
-      cube([size[0], size[1], tile_th]);
-    translate( [ botleft_post[0], botleft_post[1], -tile_th ]
+      translate(concat(botleft, [0]))
+      cube(concat(size, [tile_th]));
+    translate( concat(botleft_post, [-tile_th])
               + 0.5 * [ post_dia, post_dia, 0 ] )
       Commitid_BestCount_M( topright_post-botleft_post
                            + [0, thehd[1] ]