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

Adding helical pipes *lol*

parent aed31b79
No related branches found
No related tags found
No related merge requests found
......@@ -307,6 +307,27 @@ module cornerPipe(width, height, diameter, angle, radius, strength, center=false
// cornerPipe(20, 10, 5, 90, 1, 1, true);
// Not what I wanted to code - but may come in handy anywhere in the future…
module helixPipe(width, height, length, diameter, angle, radius, strength, center=false) {
w = width;
h = height;
l = length;
a = angle;
r = radius;
_str = strength;
tz = center ? 0 : h/2;
translate([0, 0, tz]) linear_extrude(l, twist=a, convexity=8) translate([0, 0, 0]) difference() {
roundRect(w, h, r);
roundRect(w - _str*2, h - _str*2, r - _str);
}
}
helixPipe(20, 10, 20, 5, 90, 1, 1, true);
// TODO: documentation!
module adapterPipe(
w0, h0, r0, str0, w1, h1, r1, str1,
length, x_off=0, y_off=0, center=false
......@@ -331,7 +352,7 @@ module adapterPipe(
}
}
adapterPipe(20, 30, 6, 1, 20, 10, 1, 2, 30, x_off = 23, center=true);
// adapterPipe(20, 30, 6, 1, 20, 10, 1, 2, 30, x_off = 23, center=true);
......
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