chiark / gitweb /
filamenttrestle plug hole height adjust right direction?
[reprap-play.git] / filamenttrestle.scad
index 57f52ad3f54ec173b26211063d4bf217f3de51c5..1193e4a219f67c9a078516681a3f67fc4b3c0834 100644 (file)
@@ -25,8 +25,14 @@ trestleplugd = 1;
 topcylthick = 3;
 topcylbasedepth = 4;
 
+pinbasew = 3;
+pinminh = 1.0;
+pinmaxh = 3;
+pindh = 1.0;
+pindwidth = 1.0;
+
 module Plug(d=0){
-  a = -atan(plugslope);
+  a = atan(plugslope);
   tdx = d * cos(a);
   tdy = d * sin(a);
   bdx = d / cos(a);
@@ -66,6 +72,9 @@ module Trestle(){
   eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
   topcylw = plugwmax + topcylthick*2;
 
+  pinholebasew = pinbasew + pindwidth;
+  pinholeh =     pinminh +  pindh;
+
   difference(){
     union(){
       for (mir=[0,1]) {
@@ -91,6 +100,20 @@ module Trestle(){
 
     rotate([-90,-90,0])
       Plug(d=trestleplugd);
+
+    for (rot=[0,180]) {
+      translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
+       translate([-(topcylw*0.25+1),
+                  plugh,
+                  (plugl - pinholebasew*2)/3]) rotate([0,90,0]) {
+         linear_extrude(height = topcylw*1.0+2) {
+           polygon([[-1.0 * pinholebasew, -0.01],
+                    [-0.5 * pinholebasew, pinholeh],
+                    [ 0                 , -0.01]]);
+         }
+       }
+      }
+    }
   }
 }