From: Ian Jackson Date: Sun, 9 Sep 2018 22:56:52 +0000 (+0100) Subject: sleepphone-cable-box: wip X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=eaaa8ce9d0bf67705af9ce69b5056086b36db106;ds=sidebyside sleepphone-cable-box: wip Signed-off-by: Ian Jackson --- diff --git a/sleepphone-cable-box.scad b/sleepphone-cable-box.scad index a5a28db..fe801f0 100644 --- a/sleepphone-cable-box.scad +++ b/sleepphone-cable-box.scad @@ -11,6 +11,9 @@ button_dy_centre = 5.65; phone_slop = [1,1,1] * 0.5; +led = [25.9, 9.44]; // y is from edge +led_dia = 4.4; + // calculated top_z = max( phone[2] + wall[2], @@ -43,15 +46,24 @@ module MainProfile(){ } } -module Box(){ - mirror([0,1,0]) rotate([90,0,0]) { - linear_extrude(height = phone[0] + wall[0]) +module BoxMain(){ + rotate([0,0,90]) rotate([90,0,0]) { + linear_extrude(height = phone[0] + wall[0], convexity=20) MainProfile(); translate([0,0, phone[0]]) - linear_extrude(height = wall[0]) + linear_extrude(height = wall[0], convexity=20) hull() MainProfile(); } } +module Box(){ + difference(){ + BoxMain(); + + translate([ led[0], phone[1]/2 - led[1], 1 ]) + cylinder(r = led_dia/2, h= phone[2]*2, $fn=20); + } +} + //MainProfileInner(); Box();