From dac59d046b4618c680cdeee187942858e9efd20d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Feb 2020 11:20:42 +0000 Subject: [PATCH] fairphone-battery-case: rounded sides Signed-off-by: Ian Jackson --- fairphone-battery-case.scad | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/fairphone-battery-case.scad b/fairphone-battery-case.scad index 921e1a5..4306e3d 100644 --- a/fairphone-battery-case.scad +++ b/fairphone-battery-case.scad @@ -35,6 +35,7 @@ bpp4 = [ bpp3[0], bpp0[1] + mainwall_th ]; lppC = bpp3 + [ 0, -recess_gap_end ]; s0 = battery_wdth/2; +s0i = s0 - battery_th/2; s1 = s0 + smallwall_th; echo( @@ -118,10 +119,18 @@ module PlanDemo(){ ////toplevel module Base(){ ////toplevel ExtrudePlan(0,s1) BaseHalfPlan(); - ExtrudePlan(s0,s1) SideHalfPlan(); - ExtrudePlan(s0 - battery_base_indent_fromside_inside, - s0 - battery_base_indent_fromside_outside - ) BaseHalfPlan(indent = battery_base_indent); + difference(){ + union(){ + ExtrudePlan(s0i, s1) SideHalfPlan(); + ExtrudePlan(s0 - battery_base_indent_fromside_inside, + s0 - battery_base_indent_fromside_outside + ) BaseHalfPlan(indent = battery_base_indent); + } + for (m=[0,1]) + mirror([m,0,0]) + translate([s0i, 0, bpp7[0] - 0.1]) + cylinder(r= battery_th/2, h=100, $fs=0.5); + } } module BaseHalfTest(){ ////toplevel -- 2.30.2