summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
Diffstat (limited to 'case')
-rw-r--r--case/case.scad37
1 files changed, 20 insertions, 17 deletions
diff --git a/case/case.scad b/case/case.scad
index ac8c187..7745975 100644
--- a/case/case.scad
+++ b/case/case.scad
@@ -1,15 +1,18 @@
+pcb_clearance_edge = 1.0;
+pcb_clearance_bottom = 2.0;
+
pcb_width = 257.175;
pcb_height = 95.250;
-radius = 0.5;
+corner_radius = 0.5;
$fn = 72;
/* Lower left rounded corner */
rotate([-90, 90, 90])
rotate_extrude(angle = 90) {
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
}
@@ -18,8 +21,8 @@ translate([pcb_width, 0, 0])
rotate([270, 0, 0])
linear_extrude(pcb_height)
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
/* Upper left rounded corner */
@@ -27,8 +30,8 @@ translate([0, pcb_height, 0])
rotate([0, 90, 90])
rotate_extrude(angle = 90) {
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
}
@@ -37,8 +40,8 @@ translate([pcb_width, pcb_height, 0])
rotate([90, 90, 90])
rotate_extrude(angle = 90) {
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
}
@@ -46,16 +49,16 @@ rotate([90, 90, 90])
rotate([270, 90, 0])
linear_extrude(pcb_height)
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
/* Bottom rounded edge */
rotate([90, 180, 90])
linear_extrude(pcb_width)
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
/* Right rounded edge */
@@ -63,8 +66,8 @@ translate([pcb_width, 0, 0])
rotate([180, 90, 90])
rotate_extrude(angle = 90) {
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
}
@@ -74,8 +77,8 @@ translate([0, pcb_height, 0])
rotate([0, 90, 0])
linear_extrude(pcb_width)
intersection() {
- circle(r=radius);
- square(radius*2);
+ circle(r=corner_radius);
+ square(corner_radius*2);
}
square([pcb_width, pcb_height], false); \ No newline at end of file