chiark / gitweb /
belt-slot-cut-jig: wip punchholder
[reprap-play.git] / belt-slot-cut-jig.scad
index 6c8d1536d65d98a9a5754f0314aca844fcf5d963..3e39d8dbec7ef36684c3b53981bc987407f984cc 100644 (file)
@@ -2,6 +2,9 @@
 
 crewpunch_slop = 0.3;
 
+holder_min_wall = 1;
+holder_front_wall = 5;
+
 // from careful measurement
 
 crewpunch_shape =
@@ -16,6 +19,17 @@ crewpunch_systematic_size_error = +0.36;
 
 crewpunch_min_y = 4.7 - crewpunch_systematic_size_error;
 
+// computed
+
+crewpunch_smallest_shape = crewpunch_shape[0];
+crewpunch_biggest_shape = crewpunch_shape[len(crewpunch_shape)-1];
+
+holder_block_zsz = crewpunch_biggest_shape[0] - crewpunch_smallest_shape[0];
+holder_xsz = crewpunch_biggest_shape[0][0] + crewpunch_biggest_shape[0][1] +
+  holder_min_wall*2;
+holder_ysz = crewpunch_biggest_shape[1][0] + crewpunch_biggest_shape[1][1] +
+  holder_min_wall + holder_front_wall;
+
 // objects
 
 module CrewPunch(){
@@ -36,4 +50,12 @@ module CrewPunch(){
   }
 }
 
-CrewPunch();
+module PunchHolder(){
+  difference(){
+    cube([holder_xsz, holder_ysz, holder_block_zsz]);
+    
+  }
+}
+       
+//CrewPunch();
+PunchHolder();