scad_files/pi-camera-case.scad

23 lines
871 B
OpenSCAD
Raw Normal View History

include <PiZero.scad>
include <BOSL2/std.scad>
wall_thickness_mod = 1.2;
cap_thickness = 6;
case_height = 7;
outer_rect_size=[PiSizeX + wall_thickness_mod, PiSizeY + wall_thickness_mod];
PiZeroVer = "WH";
up(cap_thickness) PiZeroBody(false);
union() {
// Case Walls
up(cap_thickness - 0.05) difference() {
rect_tube(h=case_height, size=outer_rect_size , isize=[PiSizeX, PiSizeY], anchor=BOTTOM);
up(0.5) PiZeroBody(true);
up(2) fwd(PiSizeY / 2 + wall_thickness_mod / 3 + 0.1) right(PiSizeX / 2 - 6) xrot(90) text3d(text = "5V", size=3, font = "Hurmit Nerd Font", thickness = wall_thickness_mod / 3);
}
// Bottom Wall Cap
linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
// Top Wall Cap
// %up(cap_thickness + case_height - 0.1) linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
}