Files
phone-case/case.scad
Colin 3bf24c420c prefer $fs over $fn
$fn = 50 is extreme and *really* slows things down
2023-12-21 04:23:42 +00:00

55 lines
1.1 KiB
OpenSCAD

include <dimensions.scad>
use <phone.scad>
$fs = 1;
module plate(Margin, Thick=Height)
{
translate([0,0,2]) hull() {
translate([(Length-Height-Margin)/2,(Width-Height-Margin)/2,0]) cylinder(d=Height, h=Thick);
translate([-(Length-Height-Margin)/2,(Width-Height-Margin)/2,0]) cylinder(d=Height, h=Thick);
translate([(Length-Height-Margin)/2,-(Width-Height-Margin)/2,0]) cylinder(d=Height, h=Thick);
translate([-(Length-Height-Margin)/2,-(Width-Height-Margin)/2,0]) cylinder(d=Height, h=Thick);
}
}
difference() {
union() {
difference() {
phone(4);
plate(2);
}
translate([0,0,Height/2-4]) {
minkowski() {
difference() {
plate(3,1);
translate([0,0,-1])plate(3.1,4);
}
sphere(2);
}
}
}
phone(Bits=1);
//translate([0,-50,-50])cube([100,100,100]);
}
/*
translate([0,0,Height/2-4]) {
minkowski() {
difference() {
plate(3,1);
translate([0,0,-1])plate(3.1,4);
}
sphere(2);
}
}
minkowski() {
difference() {
cube([Length+0.2, Width+0.2, 0.2], true);
cube([Length, Width, 4], true);
}
sphere(d=3);
}
*/