}
module CaseBase_rhsflip(rhs) {
- translate([phone_width/2, -phone_cnr_rad, 0])
+ translate([phone_width/2, 0, 0])
mirror([rhs,0,0])
- translate([-phone_width/2,0,0])
+ translate([-phone_width/2, 0, 0])
children();
}
+module CaseBase_botflip(bot) {
+ translate([0, -phone_height/2, 0])
+ mirror([0, bot, 0])
+ translate([0, phone_height/2, 0])
+ children();
+}
+
module CaseBase(){
for (rhs=[0,1]) {
CaseBase_rhsflip(rhs){
- rotate([90,0,0])
- linear_extrude(height = phone_height - phone_cnr_rad)
+ translate([0, -phone_cnr_rad, 0])
+ rotate([90,0,0])
+ linear_extrude(height = phone_height - phone_cnr_rad*2)
EdgeProfile();
}
}
for (rhs=[0,1]) {
CaseBase_rhsflip(rhs){
- translate([+1,0] * phone_cnr_rad)
+ translate([+1,-1] * phone_cnr_rad)
intersection(){
rotate_extrude()
intersection(){
}
}
}
- translate([ phone_width - phone_cnr_rad, 0,0 ])
- rotate([90,0,-90])
- linear_extrude(height = phone_width - phone_cnr_rad*2)
- EdgeProfile();
+ for (bot=[0,1]) {
+ CaseBase_botflip(bot){
+ translate([ phone_width - phone_cnr_rad, 0,0 ])
+ rotate([90,0,-90])
+ linear_extrude(height = phone_width - phone_cnr_rad*2)
+ EdgeProfile();
+ }
+ }
}
//EdgeProfile();