From: Ian Jackson Date: Thu, 11 Oct 2012 00:42:49 +0000 (+0100) Subject: filamenttrestle adjust block hole X-Git-Tag: filamentspool-v2-release~737 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=9362d76a5fa762aac6e2908f6987eae64d47b208 filamenttrestle adjust block hole --- diff --git a/filamenttrestle.scad b/filamenttrestle.scad index c45e8af..7725876 100644 --- a/filamenttrestle.scad +++ b/filamenttrestle.scad @@ -24,7 +24,7 @@ trestlebaseh = 10; trestleplugd = 1; topblockthick = 4; -topblockbasedepth = 4; +topblockbasedepth = 5; pinbasew = 5.0; pinminh = 1.5; @@ -38,15 +38,17 @@ pinstraightlen = 10; module Plug(d=0){ dw = d; dh = d; + dhb = d*2; a = atan(plugslope); - bdx = dw / cos(a); + bdy = -dhb; + bdx = dw / cos(a) + bdy * plugslope; tdy = dh; - tdx = bdx + dh * plugslope; + tdx = bdx + tdy * plugslope; translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){ - polygon([[-(plugwmin/2 + bdx), 0], + polygon([[-(plugwmin/2 + bdx), bdy], [-(plugwmax/2 + tdx), plugh + tdy], [+(plugwmax/2 + tdx), plugh + tdy], - [+(plugwmin/2 + bdx), 0]]); + [+(plugwmin/2 + bdx), bdy]]); } }