chiark / gitweb /
sewing-table: introduce a concat (nfc)
[reprap-play.git] / sewing-table.scad.m4
index c84f359d68dd04053420b34ff85904b9ce2203f9..4d818ef008b7f74a739132673550cbac58024684 100644 (file)
@@ -47,7 +47,7 @@ module Post(){
 
 module Posts(posts) {
   for (p= posts) {
-    translate([p[0], p[1], 0])
+    translate(concat(p, [0]))
       Post();
   }
 }
@@ -84,7 +84,7 @@ m4_define(`INREFFRAME',`
 m4_dnl  INREFFRAME(left_post, right_post, morevars)
 m4_dnl    INREFFRAME_EDGE { body; }
 m4_define(`INREFFRAME_EDGE',`
-  translate([-thehd[0], -thehd[1], -round_edge_rad])
+  translate(concat(-thehd, [-round_edge_rad]))
 ')
 
 module RoundEdge(left_post, right_post) {