From c44340a4f053688cc69138a06f693309f8c4fda2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 6 Jun 2017 22:39:52 +0100 Subject: [PATCH] sewing-table: JIG: Introduce, currently just like TEST --- Makefile | 2 +- sewing-table-jig.scad | 5 +++++ sewing-table.scad.m4 | 9 +++++---- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 sewing-table-jig.scad diff --git a/Makefile b/Makefile index 3245294..70929a3 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ CONFIG=$(PLAY)/slic3r-config.ini FILAMENTSPOOL_AUTOS = filamentspool filamentspool-lt filamentspool-sm FILAMENTSPOOL_AUTOS += filamentspool-storarm3 -USING_AUTOS ?= $(FILAMENTSPOOL_AUTOS) xeno-drivebay-bracket dungeonquest-cone anke-gps-bracket cable-hole-trunking-cover anglepoise-neck crossbar-computer-led-mount wardrobe-hook knifeblock pandemic-counter pattress-boxes-3-cover bike-lipo-box earring-stand bike-stalk-led-mount sewing-table sewing-table-test maglite-holder +USING_AUTOS ?= $(FILAMENTSPOOL_AUTOS) xeno-drivebay-bracket dungeonquest-cone anke-gps-bracket cable-hole-trunking-cover anglepoise-neck crossbar-computer-led-mount wardrobe-hook knifeblock pandemic-counter pattress-boxes-3-cover bike-lipo-box earring-stand bike-stalk-led-mount sewing-table sewing-table-test sewing-table-jig maglite-holder AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m)) diff --git a/sewing-table-jig.scad b/sewing-table-jig.scad new file mode 100644 index 0000000..984ec07 --- /dev/null +++ b/sewing-table-jig.scad @@ -0,0 +1,5 @@ +//// toplevels-from:sewing-table.scad +include +JIG = true; +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 c4054f0..a4c9fca 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -83,6 +83,7 @@ teststrap_peg = [7.5, 3.5]; // calculated TEST = false; +JIG = false; ply_edge_hole_dist = ply_edge_min + ply_hole_dia/2; @@ -122,7 +123,7 @@ module Post(){ cylinder(r= screw_dia/2, h= ply_th, $fn=20); } } - if (TEST) { + if (TEST || JIG) { translate([0,0, tile_th/2]) { cube([post_dia, POST_TCROSSSZ, tile_th], center=true); cube([POST_TCROSSSZ, post_dia, tile_th], center=true); @@ -146,7 +147,7 @@ module TileBase(botleft, topright){ mirror([0,0,1]) translate(concat(botleft, [0])) cube(concat(size, [tile_th])); - if (!TEST) { + if (!(TEST || JIG)) { cidsz = topright_post-botleft_post + [-post_dia,-post_dia] + [0, thehd[1]]; @@ -157,7 +158,7 @@ module TileBase(botleft, topright){ + 0.5 * concat( cidsz - cidszr, [ 0 ]) ) Commitid_BestCount_M(cidszr); } - if (TEST) { + if ((TEST || JIG)) { crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2; cidsz = [ thehd[0], size[1] - 2*crossoff ]; cidszr = [ cidsz[0], min(cidsz[1], 50) ]; @@ -601,7 +602,7 @@ module TestStrapPeg_Long(){ ////toplevel module Machine(){ ////toplevel Machine_NewArm(); Machine_Curves(); - if (TEST) + if (TEST || JIG) TestStrapSlots(); } -- 2.30.2