chiark / gitweb /
belt-slot-cut-jig: round off the corners of the holder
[reprap-play.git] / belt-slot-cut-jig.scad
index ee51907..cca4e27 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,