From 187329f7eb529fc849334ac0a6798848bc151783 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 6 Jun 2017 23:32:18 +0100 Subject: [PATCH] sewing-table: jig: properly conditionalise post holes! --- sewing-table.scad.m4 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 44503d5..b15b35a 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -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) { -- 2.30.2