Skip to content
Snippets Groups Projects
Commit db7c1091 authored by fxk8y's avatar fxk8y :spider:
Browse files

Backup!!!

parent 18346ab7
No related branches found
No related tags found
No related merge requests found
......@@ -16,31 +16,68 @@ hs_fin_cnt = 10;
hs_fin_spacing = 3;
module symmetricHeatsink() {
module symmetricHeatsink(
l = hs_l,
w = hs_w,
baseplate = hs_baseplate,
fin_w0 = hs_fin_w0,
fin_w1 = hs_fin_w1,
fin_d = hs_fin_d,
fin_cnt = hs_fin_cnt,
fin_spacing = hs_fin_spacing
) {
module fin() {
dw2 = hs_fin_d - hs_fin_w1/2;
dw2 = fin_d - fin_w1/2;
translate([0, hs_fin_w0, dw2]) rotate([-90, 0, -90]) linear_extrude(hs_l) hull() {
translate([0, dw2, 0]) square([hs_fin_w0, 0.01]);
translate([hs_fin_w1/2, 0, 0]) circle(d=hs_fin_w1);
translate([0, fin_w0, dw2]) rotate([-90, 0, -90]) linear_extrude(l) hull() {
translate([0, dw2, 0]) square([fin_w0, 0.01]);
translate([fin_w1/2, 0, 0]) circle(d=fin_w1);
}
}
module half() {
color("#0f0f0f") {
cube([hs_l, hs_w/2, hs_baseplate]);
cube([l, w/2, baseplate]);
for (y=[0:hs_fin_cnt/2 - 1]) translate([0, y * ( hs_fin_w0 + hs_fin_spacing), hs_baseplate]) fin();
for (y=[0:fin_cnt/2 - 1]) translate([0, y * ( fin_w0 + fin_spacing), baseplate]) fin();
}
}
half();
translate([0, hs_w, 0]) mirror([0, 1, 0]) half();
translate([0, w, 0]) mirror([0, 1, 0]) half();
}
module roundRect(w, h, r) {
_dw2 = (w - 2*r) / 2;
_dh2 = (w - 2*r) / 2;
hull() for (tx=[-_dw2, _dw2], ty=[-_dh2, _dh2]) translate([tx, ty, 0]) circle(r=r);
}
/**
*
*
*
*
*
*
*/
module fanProfile() {
}
symmetricHeatsink();
// symmetricHeatsink();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment