chiark / gitweb /
splitpin good cavity
[reprap-play.git] / splitpin.scad
index 1e38256d16c8ed2e945fecd089d6241c74817cfc..931eb0002c94b0a52b734ad4854201b178b5a3c4 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();