chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b24fd0
)
simplephone-case: test version
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 23:05:03 +0000
(
00:05
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 23:05:03 +0000
(
00:05
+0100)
simplephone-case.scad
patch
|
blob
|
history
diff --git
a/simplephone-case.scad
b/simplephone-case.scad
index cc25147ae3b59a4f9d6522bf7a3f9916fe223170..fa99b506551f7b682168c41e603f8603e5750f24 100644
(file)
--- a/
simplephone-case.scad
+++ b/
simplephone-case.scad
@@
-14,7
+14,7
@@
thick = [
btn_x = 56.4;
btn_dia = 13;
-btn_y
prop = 0.2
3;
+btn_y
= 14.0
3;
abtn_x = 43.15;
abtn_sz = [ 11, 13 ];
@@
-40,6
+40,9
@@
inner_cnr_rad = 3.0;
// calculated
+btn_yprop = btn_y / psz[1];
+echo(btn_yprop);
+
ym = psz[1]/2;
outer_cnr_rad = inner_cnr_rad + thick[2];
@@
-57,12
+60,14
@@
module RoundedProfile(sz, cnr_rad){
}
module RoundedCube(sz, cnr_rad){
- hull(){
+ if ($test)
+ cube(sz);
+ else 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=
8
);
+ sphere(r= cnr_rad, $fn=
20
);
}
}