chiark / gitweb /
poster-tube-lid: LimitForHandling: central part
[reprap-play.git] / poster-tube-lid.scad
index 0650674275a9d88a198bcc3529b6d5fd1982284c..d0986c97801ba32b58a3ea815b10a3f45fc097cb 100644 (file)
@@ -9,6 +9,8 @@ top_middle_dr = 11;
 
 main_cnr = 6.0;
 
+min_wall = 4;
+
 rivet_posn = 6.0;
 rivet_thick = 1.67;
 rivet_width = 4.15 + 1.0;
@@ -26,7 +28,11 @@ oring_thick = 5.0;
 oring_bore = 62.0;
 
 oring_upper_embed_angle = 80;
-oring_compress = 0.1; // proportion
+oring_compress = 0.05; // proportion
+
+oring_rm_beside = 8;
+oring_rm_scale = 2.0;
+oring_rm_angle = 20;
 
 side_taper = 1.0;
 
@@ -77,6 +83,8 @@ rivet_entry_width = rivet_width + side_rivet_gap;
 
 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
 
+handling_dia = oring_bore + oring_thick*2 + min_wall*2;
+
 $fs= coarse ? 2.5 : 0.5;
 $fa= coarse ? 5 : 1;
 
@@ -155,6 +163,10 @@ module MainProfile(){
   }
 }
 
+module HandlingProfile(){
+//  translate([
+}
+
 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
   // nom_rad > real_rad
   rotate([0,0, atan2(offset, nom_rad) ]){
@@ -188,6 +200,7 @@ module BayonetCutout(){
   RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
                main_dia/2 + side_thick, 
                main_dia/2 + rivet_tall)
+    translate([-0.5 * (bayo_a[0] + bayo_d[0]), 0])
     polygon(bayo_polygon, convexity=10);
 }
 
@@ -196,19 +209,44 @@ module ProfilesDemo(){ ////toplevel
   translate([+10,0]) polygon(bayo_polygon, convexity=10);
 }
 
+module LimitForHandling(){ ////toplevel
+  for (r=[0,180])
+    rotate([0,0,r]) {
+      
+    }
+  hull() rotate_extrude(){
+    translate([ handling_dia/2 - main_cnr, top_z - main_cnr ]) {
+      circle(r = main_cnr);
+      mirror([0,1]) square([ main_cnr, 50 ]);
+    }
+  }
+  //cylinder(r= handling_dia/2, h=20);
+}
+
 module Cover(){ ////toplevel
   render() difference(){
-    union(){
-      rotate_extrude(convexity=10)
-       translate([main_dia/2, 0])
-       MainProfile();
-      translate([0,0, middle_bot_z])
-       cylinder(h= top_thick_middle, r = main_dia/2 - top_middle_dr + 1);
+    intersection(){
+      union(){
+       rotate_extrude(convexity=10)
+         translate([main_dia/2, 0])
+         MainProfile();
+       translate([0,0, middle_bot_z])
+         cylinder(h= top_thick_middle, r = main_dia/2 - top_middle_dr + 1);
+      }
+      %LimitForHandling();
     }
-    for (r=[0,180])
+    for (r=[0,180]){
       rotate([0,0, r])
        translate([0,0, -side_height])
        BayonetCutout();
+      rotate([0,0, r + asin((-oring_rm_beside) / (main_dia/2))])
+       translate([0,
+                  oring_mid_dia/2 + oring_thick/4 * oring_rm_scale,
+                  oring_y_rad * 1.5])
+       rotate([-oring_rm_angle, 0, 0])
+       mirror([0,0,1])
+       cylinder(r = oring_thick/4 * oring_rm_scale, h=20);
+    }
     for (r=[0 : 60 : 179]) {
       rotate([0,0, r]) {
        height = top_thick_middle - brace_above_below*2;