chiark / gitweb /
poster-tube-lid: StrapHoop: fix inside size
[reprap-play.git] / poster-tube-lid.scad
index 21b29456c06a4d6053f690c5e902d3850904cdfe..d6cd360ddc1c60e3f8709065fa8ce3370703e997 100644 (file)
@@ -11,18 +11,19 @@ main_cnr = 6.0;
 
 min_wall = 3;
 
-rivet_posn = 6.0 + 0.5;
+rivet_posn = 6.0 + 0.6;
 rivet_thick = 1.67;
 rivet_width = 4.15 + 1.0;
 rivet_tall = 5.51 + 1.49;
 
 over_rivet_wall = 1.0;
 side_rivet_gap = 1.5;
+inside_rivet_gap = 1.5;
 
-bayo_interf = 1.25;
+bayo_interf = 0.85;
 bayo_behind = 3.5;
 bayo_interf_width = 2.0;
-bayo_interf_slope = 0.75;
+bayo_interf_slope = 0.5;
 
 oring_thick = 5.0;
 oring_bore = 62.0;
@@ -36,7 +37,7 @@ oring_rm_angle = 20;
 
 side_taper = 1.0;
 
-bayo_above_gap = 1.0;
+bayo_gap = 6.0;
 
 bayo_entry = bayo_behind/3;
 
@@ -51,6 +52,11 @@ jig_hole_dia = 3.0;
 jig_rim = 5;
 jig_mark = 5;
 
+strap_hoop_thick = 6;
+strap_hoop_inside = 10;
+strap_hoop_strlen = 10;
+strap_hoop_elevation = 45;
+
 // calculated
 
 bayo_entry_x = bayo_entry;
@@ -76,8 +82,7 @@ top_z = top_thick_by_oring + oring_y_rad + by_oring_z;
 middle_bot_z = top_z - top_thick_middle;
 
 bayo_entry = bayo_behind / 3.0;
-bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
-bayo_entry_ramp = bayo_entry + bayo_interf;
+bayo_top_z = bayo_behind + bayo_gap;
 
 rivet_entry_width = rivet_width + side_rivet_gap;
 
@@ -98,9 +103,8 @@ bayo_m = [ bayo_inramp_x, bayo_behind ];
 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope,  1 ];
 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
-bayo_i = bayo_j + [ rivet_width, 0 ];
-bayo_h = [ bayo_i[0], bayo_behind + rivet_thick
-                     + bayo_above_gap + bayo_interf ];
+bayo_i = bayo_j + [ rivet_width + inside_rivet_gap, 0 ];
+bayo_h = [ bayo_i[0], bayo_behind + bayo_gap + bayo_interf ];
 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
 
 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
@@ -164,6 +168,38 @@ module MainProfile(){
   }
 }
 
+module StrapHoopProfile(){
+  circle(r = strap_hoop_thick/2);
+}
+
+module StrapHoop(){ ////toplevel
+  bigrad = strap_hoop_inside/2 + strap_hoop_thick/2;
+  extralen = strap_hoop_thick * 5;
+
+  intersection(){
+    rotate([strap_hoop_elevation, 0,0]){
+      for (x= [ -1, +1 ] * bigrad) {
+       translate([x, -extralen, 0])
+         rotate([-90,0,0])
+         linear_extrude(height= extralen + strap_hoop_strlen + 0.1,
+                        convexity=10)
+         StrapHoopProfile();
+      }
+      translate([0, strap_hoop_strlen, 0]){
+       intersection(){
+         rotate_extrude(convexity=10)
+           translate([bigrad, 0,0])
+           StrapHoopProfile();
+         translate([0,50,0])
+           cube([100,100,100], center=true);
+       }
+      }
+    }
+    translate([0, 50, 0])
+      cube(100, center=true);
+  }
+}
+
 module HandlingProfile(){
 //  translate([
 }
@@ -207,7 +243,7 @@ module BayonetCutout(){
 
 module ProfilesDemo(){ ////toplevel
   translate([-10,0]) MainProfile();
-  translate([+10,0]) polygon(bayo_polygon, convexity=10);
+  translate([+10, -side_height]) polygon(bayo_polygon, convexity=10);
 }
 
 module LimitForHandling(){ ////toplevel
@@ -269,6 +305,10 @@ module Cover(){ ////toplevel
       }
     }
   }
+  translate(strap_hoop_thick * [-0.5, 0, +1])
+    translate([handling_dia/2, 0, -side_height])
+    rotate([0,180,0]) rotate([0,0,90])
+    StrapHoop();
 }
 
 module SavingHole(){
@@ -305,12 +345,19 @@ module CoverTest2(){ ////toplevel
 module CoverTest1(){ ////toplevel
   difference(){
     CoverTest2();
-    for (r= [ 40, 147 ]){
-      rotate([0,0, r]){
-       translate([0,0, -10]) {
-         cube([ main_dia*3, main_dia * .55, 18], center=true);
+    difference(){
+      for (r= [ 40, 147 ]){
+       rotate([0,0, r]){
+         translate([0,0, -10]) {
+           cube([ main_dia*3, main_dia * .55, 18], center=true);
+         }
        }
       }
+      translate([ 50, 0, 0 ])
+       cube([ 100,
+              strap_hoop_inside + strap_hoop_thick*2 + 1,
+              100 ],
+            center=true);
     }
   }
 }