chiark / gitweb /
anke-gps-bracket: body lhs and rhs ok
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 21:33:03 +0000 (21:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 22:30:56 +0000 (22:30 +0000)
anke-gps-bracket.scad

index 6303bc488db23fd2a14be108f17caf8d994aed96..c18b716ff1942e9eadf41052d2edbc6024fdd8e7 100644 (file)
@@ -26,9 +26,10 @@ pluggapd = 12;
 // Amount of wire protrusion to allow for
 plugwiremoreh = 30;
 
-// Slops and steps
+// Slops and steps etc.
 plugslop = 0.5;
 plughstep = 1.5;
+bodylhsrhsslop = 0.5;
 
 // Dimensions for strength only
 screent = 1.0;
@@ -73,14 +74,51 @@ module GpsPlug() {
   }
 }
 
+lhsteethu = 2;
+
+module GpsLHSMask(xslop=0){
+  translate([plug2lhs + plugw+plugh+plugstrutw,
+            0,
+            -50]) {
+    for (iter=[-100/lhsteethu : 100/lhsteethu]) {
+      translate([0, iter*lhsteethu*2, 0]) {
+       linear_extrude(height=100) {
+         polygon([[-300,     0],
+                  [   0,     0],
+                  [lhsteethu,lhsteethu],
+                  [   0,     lhsteethu*2],
+                  [-300,     lhsteethu*2+0.1]]);
+       }
+      }
+    }
+  }
+}
+
 module GpsAssembled(){ ////toplevel
   GpsBody();
   GpsPlug();
 }
 
+module GpsBodyLT(){ ////toplevel
+  intersection(){
+    GpsBody();
+    GpsLHSMask();
+  }
+}
+
+module GpsBodyRT(){ ////toplevel
+  difference(){
+    GpsBody();
+    GpsLHSMask(bodylhsrhsslop);
+  }
+}
+
 module GpsPlugT(){ ////toplevel
   rotate([0,-90,0]) GpsPlug();
 }
 
 //GpsPlugT();
 GpsAssembled();
+//GpsLHSMask();
+//GpsBodyLT();
+//GpsBodyRT();