Initial commit of I have no idea what I'm doing
This commit is contained in:
parent
bb2eb012b3
commit
0d12b585d6
2 changed files with 82 additions and 1 deletions
81
case/case.scad
Normal file
81
case/case.scad
Normal file
|
@ -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);
|
|
@ -40,7 +40,7 @@
|
|||
(setup
|
||||
(pad_to_mask_clearance 0)
|
||||
(aux_axis_origin 83.185 188.11875)
|
||||
(grid_origin 86.185 159.36875)
|
||||
(grid_origin 83.185 188.11875)
|
||||
(pcbplotparams
|
||||
(layerselection 0x00010fc_ffffffff)
|
||||
(plot_on_all_layers_selection 0x0000000_00000000)
|
||||
|
|
Loading…
Add table
Reference in a new issue