chiark / gitweb /
filamentspool: Prep for 2.85dia lightduty (nfc, even with lightduty)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Dec 2015 00:17:10 +0000 (00:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Dec 2015 00:17:10 +0000 (00:17 +0000)
filamentspool.scad

index 6675c9dc345cc2b30227ac7b8e8ba275e4452e37..4952aece509d11c0345c8df00311f32827ec89be 100644 (file)
@@ -1,22 +1,23 @@
 // -*- C -*-
 
 fdia=2.85;
+lightduty=false;
 
 slop=0.5;
 bigslop=slop*2;
 
-function selsz(sm,lg) = fdia < 2 ? sm : lg;
-function usedove() = selsz(true,false);
+function selsz(sm,lt,lg) = fdia < 2 ? sm : lightduty ? lt : lg;
+function usedove() = selsz(true,false,false);
 
-num_arms = selsz(3,4);
+num_arms = selsz(3,4,4);
 
 exteffrad = 70;
-hubeffrad = selsz(30, 40);
-hubbigrad = selsz(20, 38);
-hublwidth = selsz(3, 4);
+hubeffrad = selsz(30, 40, 40);
+hubbigrad = selsz(20, 38, 38);
+hublwidth = selsz(3, 4, 4);
 hubstemwidth = 2;
 hublthick = 10;
-hubaxlerad = selsz(5, 28/2);
+hubaxlerad = selsz(5, 28/2, 28/2);
 totalheightfromtower = 240;
 axletowerfudgebend = 0;
 axleaxlefudgebend = 3;
@@ -24,20 +25,20 @@ axlepadlen = 1.0;
 
 armend_length = 120;
 
-prongthick=selsz(5,5);
-prongwidth=selsz(5,5);
+prongthick=selsz(5,5,5);
+prongwidth=selsz(5,5,5);
 prongribwidth=3;
-prongribheight=selsz(0,4);
+prongribheight=selsz(0,4,4);
 ratchetstep=15;
 ratchettooth=3;
 ratchettoothheight=5;
 ratchettoothsmoothr=1;
 ratchettoothslope=0.75;
 overlap=0.5;
-cupwidth=selsz(40,50);
-cupheight=selsz(55,55);
+cupwidth=selsz(40,50,50);
+cupheight=selsz(55,55,55);
 
-cupstrong_dx=selsz(0,-10);
+cupstrong_dx=selsz(0,-10,-10);
 
 propxshift = -6;
 
@@ -48,14 +49,14 @@ teethgapx=4+fdia;
 
 prongstalkxwidth=3;
 
-stalklength=selsz(35,55);
+stalklength=selsz(35,55,55);
 overclipcupgap=5;
 overclipdepth=15;
 overcliproundr=2.0;
 overclipthick=1.0;
 overclipcupnextgap=20;
 
-hubaxlelen = selsz(25, 87.5);
+hubaxlelen = selsz(25, 87.5, 87.5);
 echo(hubaxlelen);
 
 overclipsmaller=-2.5;