From: Ian Jackson Date: Fri, 30 Jun 2017 22:31:09 +0000 (+0100) Subject: simplephone-case: wip rounding X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=7c29da5a11949c8aaf416934dc71d4a86c8e2dda simplephone-case: wip rounding --- diff --git a/simplephone-case.scad b/simplephone-case.scad index fb0f96b..caf465e 100644 --- a/simplephone-case.scad +++ b/simplephone-case.scad @@ -30,10 +30,31 @@ rail_zsz = 2.5; case_x_less = 0; //case_x_less = 10; +inner_cnr_rad = 2.0; + // calculated ym = psz[1]/2; +module RoundedProfile(sz, cnr_rad){ + hull(){ + for (x=[ cnr_rad, sz[0]-cnr_rad ]) + for (y=[ cnr_rad, sz[1]-cnr_rad ]) + translate([x,y]) + circle(r= cnr_rad, $fn=20); + } +} + +module RoundedCube(sz, cnr_rad){ + hull(){ + for (x=[ cnr_rad, sz[0]-cnr_rad ]) + for (y=[ cnr_rad, sz[1]-cnr_rad ]) + for (z=[ cnr_rad, sz[2]-cnr_rad ]) + translate([x,y,z]) + sphere(r= cnr_rad, $fn=20); + } +} + module Case(){ difference(){ mirror([1,0,0]) @@ -84,3 +105,4 @@ module Case(){ } Case(); +//RoundedCube(psz, inner_cnr_rad);