From 9362d76a5fa762aac6e2908f6987eae64d47b208 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 11 Oct 2012 01:42:49 +0100 Subject: [PATCH] filamenttrestle adjust block hole --- filamenttrestle.scad | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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]]); } } -- 2.30.2