chiark / gitweb /
belt-slot-cut-jig: crewpunch_skew_yoff is broken; rename old variable and set to...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 Jun 2013 23:20:22 +0000 (00:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 Jun 2013 23:28:32 +0000 (00:28 +0100)
belt-slot-cut-jig.scad

index a89a071..1b3b3c8 100644 (file)
@@ -58,6 +58,7 @@ crewpunch_smallest_shape = crewpunch_shape[0];
 crewpunch_biggest_shape = crewpunch_shape[len(crewpunch_shape)-1];
 
 crewpunch_skew_angle = 3.5; //degrees
+crewpunch_skew_yoff_broken = 0; //mm
 crewpunch_skew_yoff = -1.1; //mm
 
 // computed
@@ -71,13 +72,13 @@ holder_xsz = crewpunch_biggest_shape[2][0] + crewpunch_biggest_shape[2][1] +
 holder_skewangle_yextra = holder_xsz/2 * sin(abs(crewpunch_skew_angle));
 
 holder_front_all = crewpunch_shaft_max_y - crewpunch_biggest_shape[1][0]
-  + attach_ysz + crewpunch_systematic_size_error + crewpunch_skew_yoff
+  + attach_ysz + crewpunch_systematic_size_error + crewpunch_skew_yoff_broken
   + holder_skewangle_yextra;
 
 crewpunch_biggest_y =
   crewpunch_biggest_shape[1][0] + crewpunch_biggest_shape[1][1];
 holder_ysz = crewpunch_biggest_y + holder_min_wall + holder_front_all
-  + max(0, -crewpunch_skew_yoff);
+  + max(0, -crewpunch_skew_yoff_broken);
 
 attach_offset = 0.5 * (holder_front_all - holder_attach_near_wall);
 
@@ -118,7 +119,7 @@ module PunchHolder(cutouts=true){
       translate([0,attach_offset,0])
        cube([holder_xsz, holder_ysz - attach_offset, holder_block_zsz]);
       if (cutouts)
-       translate([0,-crewpunch_skew_yoff])
+       translate([0,-crewpunch_skew_yoff_broken])
        translate(-translations)
        rotate([0,0,-crewpunch_skew_angle])
        translate(translations)