chiark / gitweb /
poster-tube-lid: LimitForHandling: central part
[reprap-play.git] / poster-tube-lid.scad
index c7e85f45052cd441e6c384a1d3f01c30cec6badd..d0986c97801ba32b58a3ea815b10a3f45fc097cb 100644 (file)
@@ -30,7 +30,7 @@ oring_bore = 62.0;
 oring_upper_embed_angle = 80;
 oring_compress = 0.05; // proportion
 
-oring_rm_beside = 5;
+oring_rm_beside = 8;
 oring_rm_scale = 2.0;
 oring_rm_angle = 20;
 
@@ -163,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) ]){
@@ -196,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);
 }
 
@@ -209,24 +214,32 @@ module LimitForHandling(){ ////toplevel
     rotate([0,0,r]) {
       
     }
-  cylinder(r= handling_dia/2, h=20);
+  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
-  %LimitForHandling();
   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]){
       rotate([0,0, r])
        translate([0,0, -side_height])
        BayonetCutout();
-      rotate([0,0, r + asin((bayo_d[0] - oring_rm_beside) / (main_dia/2))])
+      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])