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

Begin fan implementation

parent 631b829d
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,9 @@ module roundRect(w, h, r) {
// f = fan
f_wh = 40;
f_r = 3; // corner radius of fan case
f_d = 8; // depth. or thickness.
f_wh = 40; // widht and height of the fan's chassis
f_drill = 3.5; // mounting hole diameter
f_drill_wh = 33; // size of a virtual rectangle with mounting holes drilled through the corners
f_intake = 35; // air intake diameter
......@@ -73,14 +74,19 @@ f_motor = 10; // diameter of fan motor
* -> and one for the general body
* -> extrusion must become a 2-step process later on
*
*
* `layer`: either "Body" or "MotorConnection". the latter produces the bridges to the motor
*
*/
module fanProfile(
wh = f_wh,
r = f_r,
wh = f_wh,
drill = f_drill,
drill_wh = f_drill_wh,
intake = f_intake,
motor = f_motor
motor = f_motor,
layer = "Body"
) {
difference() {
......@@ -99,7 +105,29 @@ module fanProfile(
}
fanProfile();
module fan(
d = f_d,
r = f_r,
wh = f_wh,
drill = f_drill,
drill_wh = f_drill_wh,
intake = f_intake,
motor = f_motor,
) {
// shadow original module here so we don't have to repeat the param list ^^
module _fanProfile(layer = "Body") {
fanProfile(d=d, r=r, wh=wh, drill=drill, drill_wh=drill_wh, intake=intake, motor=motor, layer=layer);
}
linear_extrude(d) _fanProfile();
}
fan();
// 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