openscad/garage_door.scad
Correl Roush 4fabdf070d [project_box] Clean up dimensions API
Use coordinate triples to represent the 3D volumes being built upon.
2022-12-07 12:09:05 -05:00

41 lines
659 B
OpenSCAD

use <project_box.scad>
$fn=50;
mode = "all"; // ["case", "lid", "all"]
x = 50;
y = 70;
z = 30;
module cutouts() {
// USB Port (Front)
cutout_front([x,y,z])
translate([10, 5, 0])
square([15,10]);
// Switch (Back)
cutout_back([x,y,z])
translate([10, 5, 0])
square([15,10]);
// Sensor Wires (Right)
cutout_right([x,y,z])
translate([10,5,0])
square([15,10]);
// Something (Left)
cutout_left([x,y,z])
translate([10,5,0])
square([15,10]);
// LEDs (Top)
cutout_top([x,y,z])
translate([10,5,0])
square([15,10]);
}
project_box([x, y, z],
below=10,
mode=mode) {
cutouts();
}