chiark / gitweb /
lock-inframe-bracket: wip ClipElevations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Aug 2016 13:50:34 +0000 (14:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Aug 2016 13:50:34 +0000 (14:50 +0100)
lock-inframe-bracket.scad

index 5b14c9d321d47ebc1103cb09e727689f0afa8759..64ce9c71c39aae894cf24eb47d87c2806ea6acc0 100644 (file)
@@ -6,9 +6,14 @@ lock_d = 28.0 + 0.5;
 main_h = 45.0;
 backflange_d = 12;
 
+lockshaft_r = [5, 5];
+cliprecess_h = 16;
+total_h = 45;
+
 back_gap = 7;
 main_th = 2.5;
 midweb_d = 3;
+clip_th = 2.5;
 
 // calculated
 
@@ -54,4 +59,30 @@ module MainPlan(){
   }
 }
 
-MainPlan();
+lockshaft_or = lockshaft_r + [clip_th,clip_th];
+cliprecess_ymax = cliprecess_h - lockshaft_r[1];
+clip_ymin = cliprecess_ymax - total_h;
+
+module ClipElevationPositive(){
+  oval(lockshaft_or);
+  translate([-lockshaft_or[0], 0])
+    square([lockshaft_or[0]*2, cliprecess_ymax]);
+}
+
+module ClipElevationNegative(){
+  hull(){
+    for (y=[0, cliprecess_ymax+1])
+      translate([0, y])
+       oval(lockshaft_r);
+  }
+}
+
+module ClipElevation(){
+  difference(){
+    ClipElevationPositive(1);
+    ClipElevationNegative(0);
+  }
+}
+
+//MainPlan();
+ClipElevation();