aboutsummaryrefslogtreecommitdiff
path: root/parts/screwed_support.scad
blob: 93ed277794863db26641b5b45ea133116ec37d5d (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
radius = 10.25;
wall = 8;
c_wall = 6;
screw_r = 4.5;
screw_insert_r = 25;
h = 60;

module support() {
    difference() {
        hull() {
            cube([(radius+c_wall)*2, wall, wall]);
            translate([radius+c_wall, 0, h - radius - c_wall]) 
                rotate([-90, 0, 0]) cylinder(r=radius+c_wall, h=wall);
        }
        translate([radius+c_wall, -1, h - radius - c_wall])
            rotate([-90, 0, 0]) cylinder(r=radius, h=wall+2);
    }
}

union() {
    difference() {
        cube([(radius+c_wall)*2, (screw_insert_r+wall+2)*2, wall*2]);
        translate([radius+c_wall, screw_insert_r+wall+2, -1])
            cylinder(r=screw_r, h=wall*2+2);
        translate([radius+c_wall, screw_insert_r+wall+2, wall])
            cylinder(r=screw_insert_r, h=wall+1);
    }
    support();
    translate([0, wall + screw_insert_r*2 + 4, 0]) support();
}