From cc3962308c23495a60e4fbfcbcfa0ccb2b9e79c9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Sep 2012 00:01:38 +0100 Subject: [PATCH 1/1] filamentspool fix cup dimensions --- filamentspool.scad | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/filamentspool.scad b/filamentspool.scad index c2353fd..131e859 100644 --- a/filamentspool.scad +++ b/filamentspool.scad @@ -13,7 +13,11 @@ ratchettoothheight=5; ratchettoothsmoothr=1; ratchettoothslope=0.75; overlap=0.5; -cupbigrad=35; +cupbigrad=20; + +xstraightmul = 1.75; + +propxshift = 0; doveclipheight = 10; @@ -22,7 +26,7 @@ teethgapx=4+fdia; prongstalkxwidth=3; -stalklength=40; +stalklength=35; overclipcupgap=5; overclipdepth=15; overcliproundr=2.0; @@ -98,7 +102,7 @@ module FilamentCupHandle(){ } module FilamentCupCup(){ - xstraight = cupbigrad; + xstraight = cupbigrad * xstraightmul; linear_extrude(height=prongthick) { FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80); } @@ -122,13 +126,14 @@ module FilamentCup() { midrad = cupbigrad + prongwidth/2; - propshift = stalklength - overclipdepth - prongthick; + propshift = stalklength - overclipdepth - prongthick + propxshift; proptaken = propshift; echo(cupbigrad, dx, midrad, propshift, proptaken); translate([propshift, -1, 0]) { + // something is wrong with the y calculation cube([prongwidth, - dy - sqrt(midrad*midrad - proptaken*proptaken), + dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2, prongthick]); } translate([stalklength + overclipdepth, gapy, 0]) -- 2.30.2