chiark / gitweb /
sewing-table: JIG: differentiating
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 21:49:27 +0000 (22:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jun 2017 21:49:27 +0000 (22:49 +0100)
sewing-table-jig.scad
sewing-table.scad.m4

index 984ec07a3827bbff3d515bd10532de8260e745df..2e63aa50a4f0a65eb60664e7ea686f47cea7608a 100644 (file)
@@ -1,5 +1,7 @@
 //// toplevels-from:sewing-table.scad
 include <sewing-table.scad>
 JIG = true;
+jig_posthole_rad = 3;
+jig_pencil_rad = 2;
 test_tile_th = 0.67;
 test_edge = interlock_dia * 0.5 + interlock_fine + 2;
index e2e5fcae66e926347b1cf6f0a91593ec2125d38b..ca36333d913a93360e039f93e15811f79d08580a 100644 (file)
@@ -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();
 }