chiark / gitweb /
flyscreen-handle: wip pegs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Aug 2016 19:10:57 +0000 (20:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Aug 2016 19:10:57 +0000 (20:10 +0100)
flyscreen-handle.scad

index af3941fa898c64dfef25c111a4fe249fa9e40c1a..5d8a65fa5d83c7163f360fceb168cc1b62f708c4 100644 (file)
@@ -36,6 +36,8 @@ basics_len = 8;
 
 overret_hch = 5;
 
+peg_width_slop = 0.5;
+
 // calculated
 
 ins_irad = openingcnr_dia/2 + gap;
@@ -58,6 +60,13 @@ retain_cutout_h = retain_rad * 2 + retain_bend_gap;
 
 overret_gaplen = retain_cutout_h / cos(retain_empir_angle);
 
+peg_width = retain_stalk_len -
+  (handle_x0 - retain_mxy[0]) / cos(retain_empir_angle)
+  - peg_width_slop;
+
+peg_height = retain_cutout_h - (retain_rad + retain_stalk_h)
+  + retain_pushmore_adj;
+
 retain1_len = retain_len + retain_stalk_len;
 retain1_base = total_len - retain1_len;
 
@@ -122,6 +131,19 @@ module RetainSection(){
   }
 }
 
+module PegSection(delta){
+  square([peg_width,
+         peg_height + delta]);
+}
+
+module PegSectionForDemo(delta){
+  translate(retain_mxy)
+    rotate(retain_empir_angle)
+    translate([retain_stalk_len - peg_width - peg_width_slop/2,
+              retain_stalk_h - retain_pushmore_adj])
+    PegSection(delta);
+}
+
 module RetainCutout(gapping=false){
   translate(retain_mxy) {
     rotate(retain_empir_angle) {
@@ -202,6 +224,7 @@ module Handle(){
 module Demo(){
   color("red") translate([0,0,-3]) BasicSection();
   color("blue") translate([0,0,3]) WithRetainSection();
+  color("orange") translate([0,0,7]) PegSectionForDemo(0);
 }
 
 module Test(){
@@ -212,7 +235,7 @@ module Test(){
   }
 }
 
-//Demo();
+Demo();
 //HandleSection();
 //InsertSection();
 //WithRetainSection();
@@ -220,4 +243,4 @@ module Test(){
 //GappingSection();
 //Test();
 //Demo();
-Handle();
+//Handle();