chiark / gitweb /
belt-slot-cut-jig: round off the corners of the holder
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 14 Jun 2013 09:52:21 +0000 (10:52 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 14 Jun 2013 09:52:21 +0000 (10:52 +0100)
belt-slot-cut-jig.scad

index ee519071cc691a1751ddbe6d5de31cf2296d6148..cca4e27647b69a3ea63cbcab047ffeeb6c786ff7 100644 (file)
@@ -16,6 +16,8 @@ holder_ctie_thick = 3.0 + 0.5;
 holder_attach_walls = 3;
 holder_attach_roof = 2.5;
 
+holder_corner_round = 2.0;
+
 jig_interval = 25;
 strap_width = 26.75 + 0.7;
 strap_thick = 3;
@@ -135,11 +137,13 @@ module MaybeRoundedCube(sizes, roundedness){
 }
 
 module PunchHolder(cutouts=true){
+  roundedness = cutouts ? holder_corner_round : 0;
     difference(){
       translate([-holder_xsz/2, holder_block_min_y, 0])
-       cube([holder_xsz,
-             holder_max_y - holder_block_min_y,
-             holder_block_zsz]);
+       MaybeRoundedCube([holder_xsz,
+                         holder_max_y - holder_block_min_y,
+                         holder_block_zsz],
+                        roundedness);
       if (cutouts)
        rotate([0,0,-crewpunch_skew_angle])
        translate([punch_dx,
@@ -149,10 +153,11 @@ module PunchHolder(cutouts=true){
     }
     difference(){
       translate([-holder_attach_xsz/2, holder_all_min_y, 0])
-       cube([holder_attach_xsz,
-             attach_ysz,
-             holder_block_zsz + punch_travel
-             + holder_ctie_thick + holder_attach_roof + 1]);
+       MaybeRoundedCube([holder_attach_xsz,
+                         attach_ysz,
+                         holder_block_zsz + punch_travel
+                         + holder_ctie_thick + holder_attach_roof + 1],
+                        roundedness);
       if (cutouts)
        translate([-30,
                   holder_all_min_y + holder_attach_walls,