X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=simplephone-case.scad;h=caf465e496b3d2a20b80dcb414cc36d5f390f946;hb=7c29da5a11949c8aaf416934dc71d4a86c8e2dda;hp=b8fea21ddb800356be2421bb9ca6d6e52f898471;hpb=371f759f3dd99928c6cbbe22914363fd02a9a378;p=reprap-play.git diff --git a/simplephone-case.scad b/simplephone-case.scad index b8fea21..caf465e 100644 --- a/simplephone-case.scad +++ b/simplephone-case.scad @@ -8,7 +8,7 @@ psz = [ thick = [ 2, - 3, + 2, 2.5, ]; @@ -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);