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

index 8b3f880af2cab8a6f75ed41e4a1bc8bbe531ea88..14c879fae29aaf512138088198fc8387b323e635 100644 (file)
@@ -16,7 +16,11 @@ tubeswidth_dz = 26;
 tube_dia = 18;
 screw_hole_z = 13;
 
-beamacross_h = 15;
+screw_dia = 4 + 0.75;
+
+beam_h = 15;
+beam_th = 4.5;
+wings_height = 15;
 
 $fs = 0.1;
 $fa = 3;
@@ -27,8 +31,8 @@ function tubeswidth_at_z(z) =
   tubeswidth_bot +
   (tubeswidth_top - tubeswidth_bot) * (z / tubeswidth_dz);
 
-bracket_bot_z = screw_hole_z - beamacross_h/2;
-bracket_top_z = screw_hole_z + beamacross_h/2;
+bracket_bot_z = screw_hole_z - beam_h/2;
+bracket_top_z = screw_hole_z + beam_h/2;
 bracket_bot_xsz = tubeswidth_at_z(bracket_bot_z) + tube_dia * 1.5;
 bracket_top_xsz = tubeswidth_at_z(bracket_top_z) + tube_dia * 1.5;
 
@@ -113,7 +117,7 @@ module WingElevation(){
   }
 }
 
-module BracketAcrossElevation(){
+module BracketBeamElevation(){
   hull(){
     translate([ 0, bracket_bot_z ])
       rectfromto([ -bracket_bot_xsz/2, 0 ],
@@ -124,11 +128,32 @@ module BracketAcrossElevation(){
   }
 }
 
-module ElevationDemo(){
+module Bracket(){ ////toplevel
+  difference(){
+    union(){
+      linextr(0, wings_height) {
+       for (m=[0,1])
+         mirror([m, 0])
+           WingElevation();
+      }
+      linextr(0, beam_th)
+       BracketBeamElevation();
+    }
+    linextr(-1, wings_height+1) {
+      for (m=[0,1])
+       mirror([m, 0])
+         WingCupElevationNegative();
+      translate([ 0, screw_hole_z ])
+       circle(screw_dia/2);
+    }
+  }
+}
+
+module ElevationDemo(){ ////toplevel
   translate([0,0,2]) color("red") WingCupElevationNegative();
   translate([0,0,1]) color("blue") WingElevation();
   WingCupElevationPositive();
-  BracketAcrossElevation();
+  BracketBeamElevation();
   AtWingCupElevation(){
     translate([0,0,-2]) color("grey") {
       rectfromto([0,0], [10,10]);
@@ -136,13 +161,3 @@ module ElevationDemo(){
     }
   }
 }
-
-/*WingsElevation () {
-  difference(){
-    
-  }
-}
-
-*/
-
-ElevationDemo();