summaryrefslogtreecommitdiff
path: root/body/noctua_nf_a4x20.scad
blob: f6a19456426888239f5d4096dc73d68d57b7993b (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
include <holes.scad>

noctua_nf_a4x20_h = 40;
noctua_nf_a4x20_w = 40;
noctua_nf_a4x20_t = 20;

ld3007ms_w = 30;
ld3007ms_h = 30;
ld3007ms_t = 8;
ld3007ms_distance_between_holes = 23.8;

module noctua_nf_a4x20()
{
    translate([-noctua_nf_a4x20_w / 2, 0, -noctua_nf_a4x20_w / 2])
    rotate([0, 0, -90])
    scale([2, 1, 1])
    import("Noctua_NF-A4x10_PWM_Fan.STL");
}

// some chinese fan, 30x30x8
module ld3007ms()
{
    w = ld3007ms_w;
    h = ld3007ms_h;
    t = ld3007ms_t;
    
    translate([0, t / 2, 0])
    rotate([90, 0, 0])
    cube([w, h, t], center = true);
}

module ld3007ms_holes()
{
    dbh = ld3007ms_distance_between_holes;
    // half distance between holes
    hdbh = dbh / 2;
    
    for (xo = [hdbh, -hdbh], zo = [hdbh, -hdbh])
    {
        translate([xo, 0, zo])
        screw_hole(
            m = m2,
            id = 4,
            il = hole_insert_height * 2,
            hd = m2_head_diameter,
            hh = m2_head_height,
            hs = hole_side_back);
    }
}

*ld3007ms();
*ld3007ms_holes();