chiark / gitweb /
splitpin good cavity
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Sep 2012 16:16:49 +0000 (17:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Sep 2012 16:16:49 +0000 (17:16 +0100)
splitpin.scad

index 1e38256..931eb00 100644 (file)
@@ -58,16 +58,20 @@ module SplitPinCavity(w=1.5, holeminrad=3.5, thick=3, deviationrad=1.0,
   toegap2 = w*1.5 + slop;
   toeend = -mainlen-insertby;
 
-//translate([-biggap2, -thick/2, -mainlen-1])
-  linear_extrude(height = thick + slop*2) {
-    polygon([[-biggap2, -insertby], [-biggap2, 1],
-            [biggap2, 1], [biggap2, -insertby],
-            [toegap2, toeend-1], [-toegap2, toeend-1]]);
+  translate([0,thick/2,0]) rotate([90,0,0]) {
+    linear_extrude(height = thick + slop*2) {
+    for (xmir=[0,1]) mirror([xmir,0]) {
+       polygon([[-0.1, 1],
+                [biggap2, 1],
+                [smallgap2, -insertby],
+                [biggap2, -insertby],
+                [toegap2, toeend-1],
+                [-0.1, toeend-1]]);
+      }
+    }
   }
-//  
-//    cube([biggap, thick, mainlen+2]);
 }
 
-//SplitPin();
-//translate([30,0,0])
+SplitPin();
+translate([30,0,0])
   SplitPinCavity();