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 (from parent 1:
c75e871
)
simplephone-case: stays
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 23:48:04 +0000
(
00:48
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 30 Jun 2017 23:48:04 +0000
(
00:48
+0100)
simplephone-case.scad
patch
|
blob
|
history
diff --git
a/simplephone-case.scad
b/simplephone-case.scad
index 40045d921b3884f2481a2351a3e5d7bb10201298..fe5f695436f45fb2f4759e069c1b4f182c25437f 100644
(file)
--- a/
simplephone-case.scad
+++ b/
simplephone-case.scad
@@
-34,6
+34,8
@@
vol_zoff = 0;
rail_ysz = 2.5;
rail_zsz = 2.5;
rail_ysz = 2.5;
rail_zsz = 2.5;
+stay_height = 1.25;
+
case_x_less = 0; //case_x_less = 10;
inner_cnr_rad = 4.0;
case_x_less = 0; //case_x_less = 10;
inner_cnr_rad = 4.0;
@@
-71,6
+73,22
@@
module RoundedCube(sz, cnr_rad){
}
}
}
}
+module Stay(xbot, xtop, width, midgap_width) {
+ translate([ (xbot+xtop)/2, psz[1]/2, psz[2] ]){
+ difference(){
+ cube([ xtop-xbot, width, stay_height ], center=true);
+ if (midgap_width > 0)
+ cube([ 200, midgap_width, 10 ], center=true);
+ }
+ }
+}
+
+module Stays(){
+ Stay( 76, 82, 10, 0);
+ Stay(-0.1, 55, 10, 0);
+ Stay( 113,125, 70, 15);
+}
+
module Case(){
difference(){
mirror([1,0,0])
module Case(){
difference(){
mirror([1,0,0])
@@
-125,6
+143,8
@@
module Case(){
RoundedCube(psz + [1,0,0],
inner_cnr_rad);
RoundedCube(psz + [1,0,0],
inner_cnr_rad);
+ Stays();
+
if (0) for (m=[0,1]) {
translate([0,ym,0]) mirror([0,m,0]) translate([0,-ym,0])
translate([-1,-1, psz[2]-rail_zsz])
if (0) for (m=[0,1]) {
translate([0,ym,0]) mirror([0,m,0]) translate([0,-ym,0])
translate([-1,-1, psz[2]-rail_zsz])