Merge branch 'main' of gitlab.com:mkbd65/case
This commit is contained in:
commit
361443d6fc
2 changed files with 44 additions and 0 deletions
1
phones/.gitignore
vendored
Normal file
1
phones/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
!*.scad
|
||||
43
phones/samsung_galaxy_s22+.scad
Normal file
43
phones/samsung_galaxy_s22+.scad
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
// Samsung Galaxy S22+
|
||||
|
||||
$fn = 64;
|
||||
|
||||
module SamsungGalaxyS22Plus() {
|
||||
depth = 7.6;
|
||||
width = 75.8;
|
||||
height = 157.4;
|
||||
corner_radius = 10;
|
||||
|
||||
bump_depth = 1.5;
|
||||
bump_width = 22;
|
||||
bump_height = 50;
|
||||
|
||||
flash_radius = 3;
|
||||
flash_top = 11;
|
||||
flash_left = 27;
|
||||
|
||||
translate([corner_radius, corner_radius, 0]) {
|
||||
// phone body
|
||||
hull() {
|
||||
cylinder(h=depth, r=corner_radius);
|
||||
translate([width - 2*corner_radius, 0, 0]) cylinder(h=depth, r=corner_radius);
|
||||
translate([0, height - 2*corner_radius, 0]) cylinder(h=depth, r=corner_radius);
|
||||
translate([width - 2*corner_radius, height - 2*corner_radius, 0]) cylinder(h=depth, r=corner_radius);
|
||||
};
|
||||
|
||||
translate([0, height - 2*corner_radius, depth]) {
|
||||
// camera bump
|
||||
hull() {
|
||||
cylinder(h=bump_depth, r1=corner_radius, r2=corner_radius-1);
|
||||
translate([bump_width - 2*corner_radius + corner_radius-2, corner_radius-2, 0]) cylinder(h=bump_depth, r1=2, r2=1);
|
||||
translate([bump_width - 2*corner_radius, -1 * (bump_height - 2*corner_radius), 0]) cylinder(h=bump_depth, r1=corner_radius, r2=corner_radius-1);
|
||||
translate([-1* (corner_radius-2), -1* (bump_height - 2*corner_radius + corner_radius-2), 0]) cylinder(h=bump_depth, r1=2, r2=1);
|
||||
};
|
||||
|
||||
// flashlight
|
||||
translate([flash_left - corner_radius, -1* (flash_top - corner_radius), 0]) cylinder(h=10, r1=flash_radius, r2=10+flash_radius);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
SamsungGalaxyS22Plus();
|
||||
Loading…
Reference in a new issue