chiark / gitweb /
sewing-table: jig: properly conditionalise post holes!
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 22:32:18 +0000 (23:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 22:32:18 +0000 (23:32 +0100)
sewing-table.scad.m4

index 44503d54c831e19c294af0c4a38779a4ebbce8ae..b15b35ad8126c17e89067bdf17684a43d9f914fb 100644 (file)
@@ -144,14 +144,16 @@ module Post(){
 }
 
 module PostHole(){
-  translate([0,0,-5])
-    cylinder(r= post_dia/2, h=10);
-  translate([0,0, -jig_min_th])
-    cylinder(r= ply_hole_dia_real/2, h = 5);
-  for (rot=[0:90:270]) rotate(rot) {
-      translate([ ply_edge_hole_dist_real, 0, -5 ])
-       cube([ jig_pencil_rad*2, jig_pencil_slotlen, 10 ], center=true);
-    }
+  if (JIG) {
+    translate([0,0,-5])
+      cylinder(r= post_dia/2, h=10);
+    translate([0,0, -jig_min_th])
+      cylinder(r= ply_hole_dia_real/2, h = 5);
+    for (rot=[0:90:270]) rotate(rot) {
+       translate([ ply_edge_hole_dist_real, 0, -5 ])
+         cube([ jig_pencil_rad*2, jig_pencil_slotlen, 10 ], center=true);
+      }
+  }
 }
 
 module Posts(posts) {