chiark / gitweb /
mudguard-bracket: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Feb 2024 18:53:48 +0000 (18:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Feb 2024 18:53:48 +0000 (18:53 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
mudguard-bracket.scad

index 32fe69e7d2f65b4f3ca6e5ff8d9048f410b4e964..054e7e031e9ebe67cf152c4bf18bc7d4d6ccd62a 100644 (file)
@@ -9,6 +9,7 @@ wings_cup_inner = 3;
 wings_inner_th = 1;
 wings_main_th = 3.5;
 wings_cup_z = -34;
+restrainer_z = -15; // XXXX
 
 tubeswidth_top = 23.5;
 tubeswidth_bot = 29;
@@ -21,6 +22,9 @@ screw_dia = 4 + 0.75;
 beam_h = 15;
 beam_th = 4.5;
 wings_height = 15;
+restrainer_th = 3;
+
+restrainer_x_gap = 0.75;
 
 $fs = 0.1;
 $fa = 3;
@@ -38,6 +42,8 @@ bracket_top_xsz = tubeswidth_at_z(bracket_top_z) + tube_dia * 1.5;
 
 wing_top_ea_x = -tubeswidth_top/2 - wings_main_th/2;
 
+restrainer_ea_x = wing_top_ea_x + wings_main_th/2 + restrainer_x_gap;
+
 wing_corners = [
 //             [ -wings_dist_x/2, wings_cup_z/2 ],
                [ wing_top_ea_x, 0 ],
@@ -151,6 +157,18 @@ module Bracket(){ ////toplevel
   }
 }
 
+module Restrainer(){ ////toplevel
+  linextr(0, restrainer_th) {
+    difference(){
+      union(){
+       rectfromto([ -restrainer_ea_x, restrainer_z ],
+                  [ +restrainer_ea_x, bracket_top_z ]);
+       
+      }
+    }
+  }
+}
+
 module ElevationDemo(){ ////toplevel
   translate([0,0,2]) color("red") WingCupElevationNegative();
   translate([0,0,1]) color("blue") WingElevation();
@@ -163,3 +181,13 @@ module ElevationDemo(){ ////toplevel
     }
   }
 }
+
+module Demo(){ ////toplevel
+  color("blue")
+    rotate([90,0,0])
+    Bracket();
+  color("red")
+    rotate([90,0,0])
+    translate([ 0, 0, beam_th + 1 ])
+    Restrainer();
+}