2023-11-11 04:28:53 -05:00
|
|
|
pcb_clearance_edge = 1.0;
|
|
|
|
pcb_clearance_bottom = 2.0;
|
|
|
|
|
2023-11-11 04:24:21 -05:00
|
|
|
pcb_width = 257.175;
|
|
|
|
pcb_height = 95.250;
|
|
|
|
|
2023-11-11 04:28:53 -05:00
|
|
|
corner_radius = 0.5;
|
2023-11-11 04:24:21 -05:00
|
|
|
$fn = 72;
|
|
|
|
|
|
|
|
/* Lower left rounded corner */
|
|
|
|
rotate([-90, 90, 90])
|
|
|
|
rotate_extrude(angle = 90) {
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Lower right rounded corner */
|
|
|
|
translate([pcb_width, 0, 0])
|
|
|
|
rotate([270, 0, 0])
|
|
|
|
linear_extrude(pcb_height)
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Upper left rounded corner */
|
|
|
|
translate([0, pcb_height, 0])
|
|
|
|
rotate([0, 90, 90])
|
|
|
|
rotate_extrude(angle = 90) {
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Upper right rounded corner */
|
|
|
|
translate([pcb_width, pcb_height, 0])
|
|
|
|
rotate([90, 90, 90])
|
|
|
|
rotate_extrude(angle = 90) {
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Left rounded edge */
|
|
|
|
rotate([270, 90, 0])
|
|
|
|
linear_extrude(pcb_height)
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Bottom rounded edge */
|
|
|
|
rotate([90, 180, 90])
|
|
|
|
linear_extrude(pcb_width)
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Right rounded edge */
|
|
|
|
translate([pcb_width, 0, 0])
|
|
|
|
rotate([180, 90, 90])
|
|
|
|
rotate_extrude(angle = 90) {
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Top rounded edge */
|
|
|
|
translate([0, pcb_height, 0])
|
|
|
|
rotate([0, 90, 0])
|
|
|
|
linear_extrude(pcb_width)
|
|
|
|
intersection() {
|
2023-11-11 04:28:53 -05:00
|
|
|
circle(r=corner_radius);
|
|
|
|
square(corner_radius*2);
|
2023-11-11 04:24:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
square([pcb_width, pcb_height], false);
|