diff options
author | XANTRONIX Development | 2023-11-11 04:24:21 -0500 |
---|---|---|
committer | XANTRONIX Development | 2023-11-11 04:24:21 -0500 |
commit | 0d12b585d6738d4106e2f3170158d34b91d6d562 (patch) | |
tree | e6c5391d34a9bc01e49952d1166b7cbb7e0b9a16 /case | |
parent | bb2eb012b32dc56f7821f6440252bc7b26abd211 (diff) | |
download | xantronix-z32-0d12b585d6738d4106e2f3170158d34b91d6d562.tar.gz xantronix-z32-0d12b585d6738d4106e2f3170158d34b91d6d562.tar.bz2 xantronix-z32-0d12b585d6738d4106e2f3170158d34b91d6d562.zip |
Initial commit of I have no idea what I'm doing
Diffstat (limited to 'case')
-rw-r--r-- | case/case.scad | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/case/case.scad b/case/case.scad new file mode 100644 index 0000000..ac8c187 --- /dev/null +++ b/case/case.scad @@ -0,0 +1,81 @@ +pcb_width = 257.175; +pcb_height = 95.250; + +radius = 0.5; +$fn = 72; + +/* Lower left rounded corner */ +rotate([-90, 90, 90]) + rotate_extrude(angle = 90) { + intersection() { + circle(r=radius); + square(radius*2); + } + } + +/* Lower right rounded corner */ +translate([pcb_width, 0, 0]) +rotate([270, 0, 0]) +linear_extrude(pcb_height) + intersection() { + circle(r=radius); + square(radius*2); + } + +/* Upper left rounded corner */ +translate([0, pcb_height, 0]) +rotate([0, 90, 90]) + rotate_extrude(angle = 90) { + intersection() { + circle(r=radius); + square(radius*2); + } + } + +/* Upper right rounded corner */ +translate([pcb_width, pcb_height, 0]) +rotate([90, 90, 90]) + rotate_extrude(angle = 90) { + intersection() { + circle(r=radius); + square(radius*2); + } + } + +/* Left rounded edge */ +rotate([270, 90, 0]) +linear_extrude(pcb_height) + intersection() { + circle(r=radius); + square(radius*2); + } + +/* Bottom rounded edge */ +rotate([90, 180, 90]) +linear_extrude(pcb_width) + intersection() { + circle(r=radius); + square(radius*2); + } + +/* Right rounded edge */ +translate([pcb_width, 0, 0]) +rotate([180, 90, 90]) + rotate_extrude(angle = 90) { + intersection() { + circle(r=radius); + square(radius*2); + } + } + + +/* Top rounded edge */ +translate([0, pcb_height, 0]) +rotate([0, 90, 0]) +linear_extrude(pcb_width) + intersection() { + circle(r=radius); + square(radius*2); + } + +square([pcb_width, pcb_height], false);
\ No newline at end of file |