Commit fc340693 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

PhoneOutline.scad: improve the outside dimesnsions



Use better outside dimesnsions.

Define a pinch paramter to make the top of the case thinner that the bottom
so the case grips the phone better.
Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
parent 5ff2f9ea
......@@ -4,28 +4,31 @@
// SPDX-License-Identifier: GPL-3.0+
//
// slim needs to be defined before including this file
//slim = (slim > 0) ? slim : 0;
evergreen = 1;
pinch = 0.75;
// Phone Dimensions
pX = (evergreen == 1) ? 152 : 149;
pY = 75;
pZ = 15;
pZ = 15.5;
module phone() {
$fn=60;
r=8;
r1 = r;
r2 = r - pinch;
hull() {
//Main phone
translate([r,r,4])
cylinder(h=pZ-6, r=r);
cylinder(h=pZ-6, r1=r1, r2=r2);
translate([r,pY-r,4])
cylinder(h=pZ-6, r=r);
cylinder(h=pZ-6, r1=r1, r2=r2);
translate([pX-r,pY-r,4])
cylinder(h=pZ-6, r=r);
cylinder(h=pZ-6, r1=r1, r2=r2);
translate([pX-r,r,4])
cylinder(h=pZ-6, r=r);
cylinder(h=pZ-6, r1=r1, r2=r2);
// back bezel
// h = 4
......@@ -43,7 +46,7 @@ module phone() {
// top bezel
// h = 2
// d = 1
offsetT = r+1;
offsetT = r+1+pinch;
translate([offsetT,offsetT,pZ-2])
cylinder(h=2, r=r-1);
translate([offsetT, pY-offsetT,pZ-2])
......@@ -55,4 +58,4 @@ module phone() {
}
}
// phone();
//phone();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment