chiark / gitweb /
belt-*: allow top to be different size
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 May 2014 21:22:23 +0000 (22:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 May 2014 21:22:23 +0000 (22:22 +0100)
belt-cut-jig-common.scad
belt-hole-cut-jig.scad
belt-slot-cut-jig.scad

index 5464678..58c66df 100644 (file)
@@ -29,13 +29,17 @@ module RegistrationGroove(l){
 }
 
 module OneJig(){
+  main_z = jig_main_zsz + strap_thick;
   difference(){
     translate([-(jig_interval/2 + jig_overlap),
-              jig_min_y,
+              0,
               -strap_thick])
-      cube([jig_interval + 2,
-           jig_max_y - jig_min_y,
-           jig_main_zsz + strap_thick]);
+      rotate([0,90,0]) rotate([0,0,90])
+      linear_extrude(height=jig_interval + 2)
+      polygon([[jig_min_y,     0],
+              [jig_top_min_y, main_z],
+              [jig_top_max_y, main_z],
+              [jig_max_y,     0]]);
     OneJigCutout();
     translate([-100, -strap_width/2, -10])
       cube([200, strap_width, 10]);
index 7d80e44..1249c76 100644 (file)
@@ -9,15 +9,22 @@ edgewall_width = 3;
 
 jig_ywidth = 17;
 
-jig_min_y = -jig_ywidth;
-jig_max_y = +jig_ywidth;
-
 
 jig_main_zsz = 20;
 punch_dia = 12.75;
 
 punch_slop = 0.5;
 
+
+jig_top_ywidth = punch_dia/2 + edgewall_width;
+
+jig_min_y = -jig_ywidth;
+jig_max_y = +jig_ywidth;
+
+jig_top_min_y = -jig_top_ywidth;
+jig_top_max_y = +jig_top_ywidth;
+
+
 // common stuff
 
 include <belt-cut-jig-common.scad>
index 543a53f..645a166 100644 (file)
@@ -82,6 +82,9 @@ holder_all_min_y = holder_attach_max_y - attach_ysz;
 jig_max_y = max(holder_max_y + main_slop, strap_width/2) + edgewall_width;
 jig_min_y = min(holder_all_min_y - main_slop, -strap_width/2) - edgewall_width;
 
+jig_top_max_y = jig_max_y;
+jig_top_min_y = jig_min_y;
+
 jig_main_zsz = holder_block_zsz + punch_travel;
 
 // common stuff