chiark / gitweb /
simplephone-case: rounded, done
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 22:45:46 +0000 (23:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 22:45:46 +0000 (23:45 +0100)
simplephone-case.scad

index b1a126bccc8623312a7989b94997a34495d4a65a..ab6f36ceea97041f5b02572e5d40e61c64ae7a77 100644 (file)
@@ -37,6 +37,8 @@ inner_cnr_rad = 3.0;
 ym = psz[1]/2;
 outer_cnr_rad = inner_cnr_rad + thick[2];
 
 ym = psz[1]/2;
 outer_cnr_rad = inner_cnr_rad + thick[2];
 
+x_sliced = outer_cnr_rad * (1-sin(45));
+
 module RoundedProfile(sz, cnr_rad){
   hull(){
     for (x=[ cnr_rad, sz[0]-cnr_rad ])
 module RoundedProfile(sz, cnr_rad){
   hull(){
     for (x=[ cnr_rad, sz[0]-cnr_rad ])
@@ -59,10 +61,12 @@ module RoundedCube(sz, cnr_rad){
 module Case(){
   difference(){
     mirror([1,0,0])
 module Case(){
   difference(){
     mirror([1,0,0])
-      translate(-thick)
+      translate(-thick +
+               - [1,0,0] * x_sliced)
       RoundedCube(psz
                  + 2*thick
                  - [1,0,0] * (thick[0])
       RoundedCube(psz
                  + 2*thick
                  - [1,0,0] * (thick[0])
+                 + [1,0,0] * (x_sliced)
                  - [case_x_less, 0, 0],
                  outer_cnr_rad);
 
                  - [case_x_less, 0, 0],
                  outer_cnr_rad);
 
@@ -93,8 +97,10 @@ module Case(){
                   $fn= 20);
     }
 
                   $fn= 20);
     }
 
-    //translate([ thick[0] - 
-    //cube([
+    translate([ thick[0], -10, -10 ])
+      cube([ 10, psz[1]+20, psz[2]+20 ]);
+
+    //translate([-50,-50,10]) cube([100,100,100]);
 
     mirror([1,0,0])
       difference(){
 
     mirror([1,0,0])
       difference(){