chiark / gitweb /
belt-slot-cut-jig: new holder y variables
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 Jun 2013 23:24:25 +0000 (00:24 +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 1b3b3c8..6eff161 100644 (file)
@@ -71,9 +71,14 @@ 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_broken
-  + holder_skewangle_yextra;
+holder_max_y = crewpunch_biggest_shape[1][1] + holder_min_wall +
+  + crewpunch_systematic_size_error + holder_skewangle_yextra;
+
+holder_block_min_y = crewpunch_biggest_shape[1][0] - holder_attach_near_wall +
+  - crewpunch_systematic_size_error - holder_skewangle_yextra;
+
+holder_all_min_y = holder_block_min_y - attach_ysz;
+holder_front_all = abs(holder_all_min_y);
 
 crewpunch_biggest_y =
   crewpunch_biggest_shape[1][0] + crewpunch_biggest_shape[1][1];