Files
3d-printer-models/phone-holder-monitor/phone-holder-monitor.scad
T
2025-06-27 10:45:06 -07:00

61 lines
2.0 KiB
OpenSCAD

/* https://github.com/BelfrySCAD/BOSL2 */
include <BOSL2/std.scad>
device_w = 78;
device_h = 130;
device_d = 13;
bottom_h = 90;
front_cutout_offset = 5;
cable_cutout_w = 54;
cable_cutout_d = 8;
cable_cutout_rounding = 1;
box_t = 2;
box_rounding = 3;
device_rounding = 5;
monitor_thickness = 30;
monitor_holder_h = 30;
$fn = 150;
difference() {
group() {
/* Main holder */
translate([0,0,-(device_h-bottom_h+box_t)/2])
cuboid([device_w+2*box_t,device_d+2*box_t,bottom_h+box_t], rounding = box_rounding, except = TOP);
/* Back plate */
translate([0,(device_d+box_t)/2,0])
cuboid([device_w-device_rounding,box_t,device_w-device_rounding], rounding = device_rounding, edges="Y");
/* Behind-monitor plate */
translate([0,(device_d+box_t)/2+monitor_thickness,(device_w-device_rounding-monitor_holder_h)/2])
cuboid([device_w-device_rounding,box_t,monitor_holder_h], rounding = device_rounding, edges="Y");
/* Over-monitor holders */
translate([device_w/2-1.5*device_rounding,(device_d+box_t+monitor_thickness)/2,device_w/2-1.5*device_rounding])
rotate([90,0,0])
cylinder(h = monitor_thickness, r = device_rounding, center = true);
translate([-(device_w/2-1.5*device_rounding),(device_d+box_t+monitor_thickness)/2,device_w/2-1.5*device_rounding])
rotate([90,0,0])
cylinder(h = monitor_thickness, r = device_rounding, center = true);
}
group() {
/* Device cutout */
translate([0,0,0])
cuboid([device_w, device_d, device_h]);
/* Front cutout */
translate([0,-(device_d+box_t)/2,front_cutout_offset])
cuboid([device_w-2*front_cutout_offset,2*box_t,device_h], rounding = device_rounding, edges="Y");
/* Plug cutout */
translate([0,0,-device_h/2])
cuboid([cable_cutout_w,cable_cutout_d,bottom_h], rounding = cable_cutout_rounding);
}
}