From 72d898e4eb972630e530cd066cfcf4b1eec90137 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 6 Jun 2017 22:49:27 +0100 Subject: [PATCH] sewing-table: JIG: differentiating --- sewing-table-jig.scad | 2 ++ sewing-table.scad.m4 | 23 ++++++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/sewing-table-jig.scad b/sewing-table-jig.scad index 984ec07..2e63aa5 100644 --- a/sewing-table-jig.scad +++ b/sewing-table-jig.scad @@ -1,5 +1,7 @@ //// toplevels-from:sewing-table.scad include JIG = true; +jig_posthole_rad = 3; +jig_pencil_rad = 2; test_tile_th = 0.67; test_edge = interlock_dia * 0.5 + interlock_fine + 2; diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index e2e5fca..ca36333 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -116,23 +116,32 @@ m4_define(`POST_TCROSSSZ', module Post(){ mirror([0,0,1]) { - difference(){ - cylinder(r= post_dia/2, h= tile_th + ply_th - post_shorter); - translate([0,0, tile_th]) { - cylinder(r= screw_big_dia/2, h= screw_big_len); - cylinder(r= screw_dia/2, h= ply_th, $fn=20); + if (!JIG) { + difference(){ + cylinder(r= post_dia/2, h= tile_th + ply_th - post_shorter); + translate([0,0, tile_th]) { + cylinder(r= screw_big_dia/2, h= screw_big_len); + cylinder(r= screw_dia/2, h= ply_th, $fn=20); + } } } - if (TEST || JIG) { + if (TEST) { translate([0,0, tile_th/2]) { cube([post_dia, POST_TCROSSSZ, tile_th], center=true); cube([POST_TCROSSSZ, post_dia, tile_th], center=true); } } + if (JIG) { + translate([0,0, tile_th/2]) { + cube([POST_TCROSSSZ, POST_TCROSSSZ, tile_th], center=true); + } + } } } module PostHole(){ + translate([0,0,-5]) + cylinder(r= jig_posthole_rad, h=10); } module Posts(posts) { @@ -617,7 +626,7 @@ module TestStrapPeg_Long(){ ////toplevel module Machine(){ ////toplevel Machine_NewArm(); Machine_Curves(); - if (TEST || JIG) + if (TEST) TestStrapSlots(); } -- 2.30.2