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

Implementing two-part extrudion process

parent c9042fb7
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,11 @@ hs_fin_d = 10; // depth ...@@ -15,6 +15,11 @@ hs_fin_d = 10; // depth
hs_fin_cnt = 10; hs_fin_cnt = 10;
hs_fin_spacing = 3; hs_fin_spacing = 3;
/**
*
* TODO: Moar documentation!
*
*/
module symmetricHeatsink( module symmetricHeatsink(
l = hs_l, l = hs_l,
w = hs_w, w = hs_w,
...@@ -48,6 +53,11 @@ module symmetricHeatsink( ...@@ -48,6 +53,11 @@ module symmetricHeatsink(
} }
/**
*
* TODO: Moar documentation!
*
*/
module roundRect(w, h, r) { module roundRect(w, h, r) {
_dw2 = (w - 2*r) / 2; _dw2 = (w - 2*r) / 2;
_dh2 = (w - 2*r) / 2; _dh2 = (w - 2*r) / 2;
...@@ -68,12 +78,7 @@ f_motor = 10; // diameter of fan motor ...@@ -68,12 +78,7 @@ f_motor = 10; // diameter of fan motor
/** /**
* *
* TODO: connect the motor to the fan case * TODO: Moar documentation!!!
* -> this needs splitting up the model into 2 layers
* -> one for connecting the 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 * `layer`: either "Body" or "MotorConnection". the latter produces the bridges to the motor
* *
...@@ -105,6 +110,11 @@ module fanProfile( ...@@ -105,6 +110,11 @@ module fanProfile(
} }
/**
*
* TODO: Moar documentation!!!
*
*/
module fan( module fan(
d = f_d, d = f_d,
r = f_r, r = f_r,
...@@ -113,21 +123,23 @@ module fan( ...@@ -113,21 +123,23 @@ module fan(
drill_wh = f_drill_wh, drill_wh = f_drill_wh,
intake = f_intake, intake = f_intake,
motor = f_motor, motor = f_motor,
layer_ratio = 0.1
) { ) {
// shadow original module here so we don't have to repeat the param list ^^ // shadow original module here so we don't have to repeat the param list ^^
module _fanProfile(layer = "Body") { module _fanProfile(layer) {
fanProfile(d=d, r=r, wh=wh, drill=drill, drill_wh=drill_wh, intake=intake, motor=motor, layer=layer); fanProfile(r=r, wh=wh, drill=drill, drill_wh=drill_wh, intake=intake, motor=motor, layer=layer);
} }
if (layer_ratio > 0) translate([0, 0, d - d * layer_ratio]) linear_extrude(d * layer_ratio) _fanProfile("MotorConnection");
linear_extrude(d) _fanProfile(); if (layer_ratio < 1) linear_extrude(d * (1 - layer_ratio)) _fanProfile("Body");
} }
fan();
fan();
// 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