chiark / gitweb /
filamenttrestle legw, more tuning
[reprap-play.git] / filamenttrestle.scad
index b546360b4f6ba68d296ad07537a6df5cb292b46d..0f99442f9b21eee95b568422da46d747c4d93dbd 100644 (file)
@@ -12,7 +12,8 @@ barradz = 7;
 guidewidth = 3;
 guiderad = 20;
 
-plugl = 12;
+legw = 12;
+plugl = 16;
 plugwmin = 3;
 plugh = 10;
 plugslope = 0.5;
@@ -22,12 +23,12 @@ trestlelegw = 10;
 trestlebaseh = 10;
 trestleplugd = 1;
 
-topblockthick = 3;
+topblockthick = 4;
 topblockbasedepth = 4;
 
 pinbasew = 3;
-pinminh = 1.0;
-pinmaxh = 3;
+pinminh = 1.5;
+pinmaxh = 4.0;
 pindh = 1.0;
 pindwidth = 1.0;
 
@@ -72,9 +73,9 @@ module Bar(){
 module Trestle(){
   legang = atan2(trestlebase/2, trestleheight);
   eplen = sqrt(trestleheight*trestleheight + trestlebase*trestlebase*0.25);
-  topblockw = plugwmax + topblockthick*2;
+  topblockw = plugwmax + trestleplugd*2 + topblockthick*2;
 
-  pinholebasew = pinbasew + pindwidth;
+  pinholebasew = pinbasew + pindwidth*2;
   pinholeh =     pinminh +  pindh;
 
   difference(){
@@ -84,7 +85,7 @@ module Trestle(){
          rotate([0,0, -90-legang])
            ExtenderPillars(length=eplen+trestlelegw,
                            width=trestlelegw,
-                           height=plugl,
+                           height=legw,
                            baseweb=true);
 
          translate([-trestlebase/2, -trestleheight, 0])
@@ -95,7 +96,7 @@ module Trestle(){
        cube([topblockw, topblockbasedepth + plugh + topblockthick, plugl]);
 
       translate([-trestlebase/2, -trestleheight, 0])
-       ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=plugl);
+       ExtenderPillars(length=trestlebase, width=trestlebaseh*2, height=legw);
     }
     translate([-300, -trestleheight-50, -1])
       cube([600, 50, plugl+2]);
@@ -106,7 +107,7 @@ module Trestle(){
     for (rot=[0,180]) {
       translate([0,0,plugl/2]) rotate([0,rot,0]) translate([0,0,-plugl/2]) {
        translate([-(topblockw*0.25+1),
-                  plugh,
+                  plugh + pindh - (pinmaxh - pinminh)/2,
                   (plugl - pinholebasew*2)/3]) rotate([0,90,0]) {
          linear_extrude(height = topblockw*1.0+2) {
            polygon([[-1.0 * pinholebasew, -0.01],