summaryrefslogtreecommitdiffstats
path: root/case/outline.scad
blob: 780c8d1e95c619113dc8b1e10e5029b736bbbdfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$fn = 72;

include <dimensions.scad>

translate([case_length_bottom, 0, 0])
rotate([0, 0, 90])
intersection() {
    square([200, 200], false);
    union() {
        square([wall_width, case_length_bottom], false);
        square([case_width_bottom, wall_width], false);

        translate([case_width_bottom - wall_width, 0, 0])
        square([wall_width, case_length_bottom], false);

        translate([0, case_length_bottom - wall_width, 0])
        square([case_width_bottom, wall_width], false);


        for (screw_post = top_case_screw_posts) {
            x = screw_post[0];
            y = screw_post[1];

            translate([x, y, 0])
            difference() {
                circle(d=screw_post_diameter_outer);
                circle(d=screw_post_diameter_inner);
            }
        }
    }
}