chiark / gitweb /
filamenttrestle demo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 17 Oct 2012 20:30:35 +0000 (21:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 17 Oct 2012 20:30:35 +0000 (21:30 +0100)
filamenttrestle.scad

index 340a6d5e1ef46887bbe64aa4e335237ab3daed5e..2c54245561f4bf16380f93ba731c53078e5f2856 100644 (file)
@@ -38,6 +38,9 @@ pinstraightlen = 10;
 spoolouterpad = AxlePin_holerad()*2 * 1.5;
 spoolbarlen = spoolwidth +
   2*(Washer_thick() + AxlePin_holerad() + spoolinnerslop + spoolouterpad);
+  barz = barrad * 0.5;
+axlepin_x = spoolwidth/2 + Washer_thick() + spoolinnerslop +
+  AxlePin_holerad()*0.5;
 
 module Plug(d=0){
   dw = d;
@@ -58,7 +61,6 @@ module Plug(d=0){
 
 module Bar(){ ////toplevel
   spoolw = spoolbarlen;
-  barz = barrad * 0.5;
   biggestw = spoolw + 50;
 
   intersection(){
@@ -75,9 +77,7 @@ module Bar(){ ////toplevel
        cube([biggestw, 100, 100]);
       for (mir=[0,1]) {
        mirror([mir,0,0])
-         translate([spoolwidth/2 + Washer_thick() + spoolinnerslop +
-                    AxlePin_holerad()*0.5,
-                    0, -50])
+         translate([axlepin_x, 0, -50])
          cylinder(r=AxlePin_holerad(), 100, $fn=15);
       }
     }
@@ -187,7 +187,19 @@ module TestKit(){ ////toplevel
   }
 }
 
-Bar();
+module Demo(){
+  %Bar();
+  for (mir=[0,1]) {
+    mirror([mir,0,0]) {
+      %translate([spoolbarlen/2,0,0]) rotate([90,0,90]) Trestle();
+      translate([spoolwidth/2 + spoolinnerslop/4, 0, barz])
+       rotate([0,90,0]) AxleWasher();
+      translate([axlepin_x, 0, barz]) rotate([90,0,90]) FtAxlePin();
+    }
+  }
+}
+
+//Bar();
 //FtAxlePin();
 //AxleWasher();
 //Trestle();
@@ -195,3 +207,4 @@ Bar();
 //TestKit();
 //Plug(d=1);
 //ExtenderPillars(80,12,8, baseweb=true);
+Demo();