From: Ian Jackson Date: Wed, 10 Oct 2012 23:50:45 +0000 (+0100) Subject: filamenttrestle plug hole height adjust right directions X-Git-Tag: filamentspool-v2-release~746 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ae3bb6a02f5bd65d35377f88001b245aba68e91b;p=reprap-play.git filamenttrestle plug hole height adjust right directions --- diff --git a/filamenttrestle.scad b/filamenttrestle.scad index 1193e4a..d0b0ccb 100644 --- a/filamenttrestle.scad +++ b/filamenttrestle.scad @@ -32,10 +32,12 @@ pindh = 1.0; pindwidth = 1.0; module Plug(d=0){ + dw = d; + dh = d; a = atan(plugslope); - tdx = d * cos(a); - tdy = d * sin(a); - bdx = d / cos(a); + bdx = dw / cos(a); + tdy = dh; + tdx = bdx + dh * plugslope; translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){ polygon([[-(plugwmin/2 + bdx), 0], [-(plugwmax/2 + tdx), plugh + tdy],