chiark / gitweb /
sewing-table: JIG: Introduce, currently just like TEST
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 21:39:52 +0000 (22:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 21:39:52 +0000 (22:39 +0100)
Makefile
sewing-table-jig.scad [new file with mode: 0644]
sewing-table.scad.m4

index 32452943afffde81f6d690dade60b2cfbba04fcf..70929a3397bfe798dc83644dcbe1f248d96805d1 100644 (file)
--- 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 (file)
index 0000000..984ec07
--- /dev/null
@@ -0,0 +1,5 @@
+//// toplevels-from:sewing-table.scad
+include <sewing-table.scad>
+JIG = true;
+test_tile_th = 0.67;
+test_edge = interlock_dia * 0.5 + interlock_fine + 2;
index c4054f04308bf15757658165714ab3e638cdfaea..a4c9fca9cab81c70ee4cc7581a828c91a106b08d 100644 (file)
@@ -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();
 }