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

Minor refactorings

parent 9d7560d7
No related branches found
No related tags found
No related merge requests found
......@@ -211,23 +211,28 @@ module funnel2D() {
// ff = funnel fin
ff_str = hs_fin_w0; // strength
module funnelFin(y){
module funnelFins(){
module fin(y) {
module _fF(y) {
translate([0, -y/2, 0]) square([x, y]);
translate([0, 0, 0]) roundTri((x*9) * (y/hs_w), y, 5);
}
module _fF(y) {
translate([0, -y/2, 0]) square([x, y]);
translate([0, 0, 0]) roundTri((x*9) * (y/hs_w), y, 5);
difference() {
_fF(y + ff_str/2);
_fF(y - ff_str/2);
}
}
fin(hs_w - 5);
difference() {
_fF(y + ff_str/2);
_fF(y - ff_str/2);
}
// for (y=[0:fin_cnt/2 - 1]) translate([0, y * ( fin_w0 + fin_spacing), baseplate]) fin();
}
color([0, 0, 1.0, 1.0]) translate([0, 0, 1]) linear_extrude(1) funnelFin(hs_w - 5);
color([0, 0, 1.0, 1.0]) translate([0, 0, 1]) linear_extrude(1) funnelFins();
module funnel() {
......
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