chiark / gitweb /
simplephone-case: screen
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Jun 2017 20:56:53 +0000 (21:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 23 Jun 2017 20:56:57 +0000 (21:56 +0100)
simplephone-case.scad

index 95a8fae..46609d5 100644 (file)
@@ -19,9 +19,14 @@ btn_yprop = 0.23;
 abtn_x = 45;
 abtn_sz = [ 11, 13 ];
 
+screen_xbot = 67;
+screen_sz = [ 45, 46 ];
+
 rail_ysz = 2.5;
 rail_zsz = 2.5;
 
+case_x_less = 0; //case_x_less = 10;
+
 // calculated
 
 ym = psz[1]/2;
@@ -30,7 +35,10 @@ module Case(){
   difference(){
     mirror([1,0,0])
       translate(-thick)
-      cube(psz + 2*thick - [1,0,0] * (thick[0]));
+      cube(psz
+          + 2*thick
+          - [1,0,0] * (thick[0])
+          - [case_x_less, 0, 0]);
 
     for (yp= [ btn_yprop, 1-btn_yprop ])
       translate([ -btn_x,
@@ -41,7 +49,13 @@ module Case(){
     translate([ -abtn_x,
                btn_yprop * psz[1],
                psz[2] ])
-      cube(concat(abtn_sz, thick[2]*3), center=true);
+      cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
+
+    mirror([1,0,0])
+      translate([ screen_xbot,
+                 (psz[1] - screen_sz[1])/2,
+                 psz[2]-1 ])
+      cube(concat(screen_sz, [ thick[2]+2 ]));
 
     mirror([1,0,0])
       difference(){