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

Add roundTri module

parent a222b4e3
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,25 @@ module tri(w, h) {
]);
}
/**
* A round triangle pointing along the X-Axis
*
* `w` width; length along X
* `h` height; Y size
* `r` corner radius
* `style` use "inner" for the included area or anything else for the `outer` area, this is the included area plus corner size
*
*/
module roundTri(w, h, r, style="inner") {
_r = style == "inner" ? r : 0;
hull () {
translate([_r, -h/2 + _r, 0]) circle(r=r);
translate([_r, h/2 - _r, 0]) circle(r=r);
translate([w - _r, 0, 0]) circle(r=r);
}
}
// length of the outlet
......@@ -167,16 +186,20 @@ module funnel2D() {
_y = hs_w/2 - fu_outlet_w;
difference() {
union() {
/* union() {
translate([0, _y, 0]) square([x, fu_outlet_w]);
translate([0, -_y - fu_outlet_w, 0]) square([x, fu_outlet_w]);
// air funnel split
translate([x, 0, 0]) tri(_y*4, hs_w);
}
} */
// air funnel split
translate([x, 0, 0]) tri(x*2, _y*2);
// translate([x, 0, 0]) tri(x*2, _y*2);
}
}
......
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