chiark / gitweb /
belt-slot-cut-jig: introduce "translations" local in PunchHolder, nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 12 Jun 2013 22:36:26 +0000 (23:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 12 Jun 2013 22:36:26 +0000 (23:36 +0100)
belt-slot-cut-jig.scad

index 408ed23..68b5b70 100644 (file)
@@ -103,9 +103,10 @@ module CrewPunch(){
 }
 
 module PunchHolder(cutouts=true){
-  translate([-holder_xsz/2,
-            -holder_ysz + holder_min_wall + crewpunch_biggest_y/2,
-            0]){
+  translations=[-holder_xsz/2,
+               -holder_ysz + holder_min_wall + crewpunch_biggest_y/2,
+               0];
+  translate(translations){
     difference(){
       translate([0,attach_offset,0])
        cube([holder_xsz, holder_ysz - attach_offset, holder_block_zsz]);