From 4427d1a53d871980eedadc52cd1767d29f3dacb4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 15 Feb 2014 12:37:35 +0000 Subject: [PATCH] wardrobe-hook: wip --- wardrobe-hook.scad | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wardrobe-hook.scad b/wardrobe-hook.scad index e37e1da..8658bf8 100644 --- a/wardrobe-hook.scad +++ b/wardrobe-hook.scad @@ -30,9 +30,10 @@ mainthick = 4; clipthick = 2; clipang = 120; -bend = 5; +stemlen = 50; tuberad = tubewidth/2; +bend = atan(tuberad/stemlen); mainoutrad = tuberad + mainthick; module Plan(){ @@ -41,6 +42,8 @@ module Plan(){ FArcSegment(0, 0, tuberad, mainoutrad, -bend, bend+1); translate([tuberad, 0]) square(center=false, size=[mainthick,dy]); FArcSegment(0, 0, tuberad, tuberad + clipthick, 360-clipang, clipang+1); + rotate(-bend) translate([tuberad, 0]) mirror([0,1]) + square(center=false, size=[mainthick, stemlen/cos(bend)]); } Plan(); -- 2.30.2