chiark / gitweb /
belt-slot-cut-jig: crew punch shape slop etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2013 14:58:15 +0000 (15:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2013 14:58:15 +0000 (15:58 +0100)
belt-slot-cut-jig.scad

index b195df4e8fbb7b93dc349d188437c5e441a68237..6c8d1536d65d98a9a5754f0314aca844fcf5d963 100644 (file)
@@ -1,5 +1,9 @@
 // -*- C -*-
 
+crewpunch_slop = 0.3;
+
+// from careful measurement
+
 crewpunch_shape =
   [[  6, [0.6, 6.0], [1.6, 12.3] ],
    [  8, [1.1, 6.2], [1.9, 12.5] ],
@@ -8,7 +12,14 @@ crewpunch_shape =
    [ 14, [2.1, 6.8], [2.6, 13.0] ],
    [ 16, [2.4, 6.9], [2.7, 13.2] ]];
 
+crewpunch_systematic_size_error = +0.36;
+
+crewpunch_min_y = 4.7 - crewpunch_systematic_size_error;
+
+// objects
+
 module CrewPunch(){
+  ourslop = crewpunch_slop - crewpunch_systematic_size_error;
   hull(){
     for(layer=crewpunch_shape){
       translate([0,0, layer[0]]){
@@ -16,8 +27,8 @@ module CrewPunch(){
          for(yind=[0,1]) //translate([0,yind?0.5:0,0])
            mirror([xind?1:0,0,0]) mirror([0,yind?0:1,0]){
              translate([-0.1,-0.1,-0.1])
-               cube([0.1 + layer[2][xind],
-                     0.1 + layer[1][yind],
+               cube([0.1 + layer[2][xind] + ourslop,
+                     0.1 + layer[1][yind] + ourslop,
                      0.2]);
            }
       }