chiark / gitweb /
pattress-boxes-3-cover: change default $peg_outer_slop, from v2, to match #2
[reprap-play.git] / belt-hole-cut-jig-simple.scad
index 550102d..68ef720 100644 (file)
@@ -3,7 +3,7 @@
 strap_thick = 3;
 strap_width = 26.75 + 0.7;
 
-punch_dia = 12.75;
+punch_dia = 11.10;
 
 punch_slop = 0.5;
 
@@ -11,13 +11,13 @@ jig_interval = 20;
 
 reg_blocks = 3;
 
-jig_iters = 7; //xxx
+jig_iters = 7;
 
 roof_thick = 4;
 regblock_thick = 4;
-punchtube_thick = 2.5;
+punchtube_thick = 1.8;
 
-total_h = 40;
+total_h = 33;
 punchfree_h = 8;
 
 reg_prot_width = 4;
@@ -43,7 +43,7 @@ module RegBlockOutline(){
 }
 
 module RegBlock(){
-  translate([0,0,total_h])
+  translate([regblock_thick/2,0,total_h])
     rotate([0,-90,0])
     linear_extrude(height=regblock_thick)
     RegBlockOutline();
@@ -54,8 +54,8 @@ module MainFrame(){
     mirror([1,0,0])
     cube([mainframe_l, mainframe_w, roof_thick]);
   for (rbi=[0:reg_blocks-1]) {
-    translate([jig_interval/2 +
-              -(mainframe_l-regblock_thick)/(reg_blocks-1) * rbi,
+    translate([0 +
+              -(mainframe_l-jig_interval)/(reg_blocks-1) * rbi,
               0,0])
       RegBlock();
   }
@@ -70,14 +70,14 @@ module PerHole(){
 
 module Shells(){
   PerHole(){
-    cylinder(r=punchhole_r+punchtube_thick, h=total_h-punchfree_h);
+    cylinder(r=punchhole_r+punchtube_thick, h=total_h-punchfree_h, $fn=50);
   }
 }
 
 module Punches(){
   PerHole(){
     translate([0,0,-1]){
-      cylinder(r=punchhole_r, h=total_h+2);
+      cylinder(r=punchhole_r, h=total_h+2, $fn=100);
       %cylinder(r=punch_dia/2, h=total_h);
     }
   }