From: Ian Jackson Date: Sat, 23 Jul 2016 12:39:28 +0000 (+0100) Subject: earring-stand: use FArcSegment X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=d26f6954c5d0205b1d6431caf1a3205aaab27bfb;hp=c017d3a74554c3c40676c8d7d139b68f30a1f7c3 earring-stand: use FArcSegment --- diff --git a/earring-stand.scad b/earring-stand.scad index 52ad317..ace6c7a 100644 --- a/earring-stand.scad +++ b/earring-stand.scad @@ -6,18 +6,35 @@ eclip_prong_th = 3; eclip_outer_strt = 0.5; eclip_inner_xstrt = 0.5; +eclip_ult_angle = 44; +eclip_base_epsilon = 0.5; + // calculated +include + eclip_inner_strt = eclip_outer_strt + eclip_inner_xstrt; r0 = eclip_inner_rad; r1 = r0 + eclip_inner_rad; r2 = r1 + eclip_prong_th; +r2e = r1 + eclip_base_epsilon; + +$fn=70; module EclipLPlanCore(alpha){ + FArcSegment(0,0, r1,r2, + 180-eclip_ult_angle, eclip_ult_angle-alpha +1); + difference(){ - circle(r = r2); - circle(r = r1); + hull(){ + intersection(){ + circle(r2); + rotate(-alpha) mirror([1,1]) square([r2e, 50]); + } + rotate(-alpha) mirror([1,1]) square([r2e, r2]); + } + circle(r1); } }