chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplephone-case: TestLoop
[reprap-play.git]
/
simplephone-case.scad
diff --git
a/simplephone-case.scad
b/simplephone-case.scad
index 5da6f53549da4ffea6559c60f5dd83fe1225f3ff..cc25147ae3b59a4f9d6522bf7a3f9916fe223170 100644
(file)
--- a/
simplephone-case.scad
+++ b/
simplephone-case.scad
@@
-45,6
+45,8
@@
outer_cnr_rad = inner_cnr_rad + thick[2];
x_sliced = outer_cnr_rad * (1-sin(45));
x_sliced = outer_cnr_rad * (1-sin(45));
+$screen = true;
+
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 ])
@@
-60,7
+62,7
@@
module RoundedCube(sz, cnr_rad){
for (y=[ cnr_rad, sz[1]-cnr_rad ])
for (z=[ cnr_rad, sz[2]-cnr_rad ])
translate([x,y,z])
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=
20
);
+ sphere(r= cnr_rad, $fn=
8
);
}
}
}
}
@@
-87,7
+89,8
@@
module Case(){
psz[2] ])
cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
psz[2] ])
cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
- mirror([1,0,0])
+ if ($screen)
+ mirror([1,0,0])
translate([ screen_xbot,
(psz[1] - screen_sz[1])/2,
psz[2]-1 ])
translate([ screen_xbot,
(psz[1] - screen_sz[1])/2,
psz[2]-1 ])
@@
-126,5
+129,14
@@
module Case(){
}
}
}
}
+module TestLoop(){
+ intersection(){
+ Case($screen=false);
+ translate([ -vol_xbot, 0,0 ])
+ cube([ 4, 200,200 ], center=true);
+ }
+}
+
Case();
Case();
+//TestLoop();
//RoundedCube(psz, inner_cnr_rad);
//RoundedCube(psz, inner_cnr_rad);