chiark / gitweb /
flyscreen-handle: from v6, nicer handle, really
[reprap-play.git] / flyscreen-handle.scad
index 00136e725de4b08fffce74e750c22c97949c130a..852b38f5dd480227bf4a8e425494494826b9ec41 100644 (file)
@@ -11,10 +11,11 @@ retain_rad = 1.65;
 retain_protr = 0.35;
 retain_hgap_adjust = 1.5;
 
-retain_stalk_len = 8.0;
+retain_stalk_len = 6.5;
 retain_stalk_h = 1.5;
 retain_bend_gap = 2.0;
 retain_empir_angle = -25;
+retain_pushmore_adj = 0.75;
 
 hgap_empir_adjust = -0.5 -2.50;
 
@@ -23,7 +24,7 @@ topprotr_rad = 0.35;
 bot_overlap = 5;
 bot_w = 3;
 
-handle_w = 8;
+handle_w = 10;
 handle_rh = 3;
 handle_rcut = 3;
 
@@ -31,7 +32,6 @@ cutout_gap = 1.5;
 
 total_len = 35;
 retaining_len = 10;
-overret_gaplen = 5;
 
 overret_hch = 5;
 
@@ -51,7 +51,11 @@ handle_x1 = handle_x0 + bot_w + handle_w;
 topprotr_y = -ins_irad + opening_topprotr;
 
 retain_mxy = [handle_x0 - retain_rad - retain_hgap_adjust,
-             -ins_orad + retain_rad - retain_protr];
+             -ins_orad + retain_rad - retain_protr - retain_pushmore_adj];
+
+retain_cutout_h = retain_rad * 2 + retain_bend_gap;
+
+overret_gaplen = retain_cutout_h / cos(retain_empir_angle);
 
 module InsertSection(){
   hull(){
@@ -99,6 +103,9 @@ module HandleSection(){
       translate([handle_x1 - handle_rh/2, y])
        circle(r = handle_rh/2, $fn=20);
   }
+  translate([ handle_x1 - handle_rh*2,
+             handle_y1 - handle_rh/2 ])
+    circle(r = handle_rh/2, $fn=20);
 }
 
 module RetainSection(){
@@ -115,7 +122,7 @@ module RetainCutout(gapping=false){
     rotate(retain_empir_angle) {
       translate([-50, -retain_rad]) {
        square([50 + retain_stalk_len,
-               retain_rad * 2 + retain_bend_gap]);
+               retain_cutout_h]);
       }
     }
   }
@@ -123,10 +130,12 @@ module RetainCutout(gapping=false){
 
 module GappingSection(){
   difference(){
-    InsertSection();
+    union(){
+      InsertSection();
+      HandleSection();
+    }
     RetainCutout(true);
   }
-  HandleSection();
 }
 
 module WithRetainSection(){
@@ -155,10 +164,10 @@ module Handle(){
   translate([0,0, bs1+0.1]) mirror([0,0,1]) {
     intersection_for (sl=[0,1]) {
       multmatrix([[1,0,0,0],
-                 [0,1,sl*0.65,0],
+                 [0,1,sl,0],
                  [0,0,1,0],
                  [0,0,0,1]])
-       linear_extrude(height= overret_gaplen+1, convexity=100)
+       linear_extrude(height= overret_gaplen + 10, convexity=100)
        BasicSection();
     }
   }