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

StraightPipe: inner and outer volume settings

parent 711e8c2d
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ module straightPipe(width, height, length, radius, strength, center=false, inner
// center only applies to Z-axis
// TODO: write documentation!
module cornerPipe(width, height, diameter, angle, radius, strength, center=false) {
module cornerPipe(width, height, diameter, angle, radius, strength, center=false, inner=true, outer=true) {
w = width;
h = height;
d = diameter; // "size" of the corner. inner diameter of where it is virtually wound onto
......@@ -34,8 +34,8 @@ module cornerPipe(width, height, diameter, angle, radius, strength, center=false
tz = center ? 0 : h/2;
translate([0, 0, tz]) rotate_extrude(angle=a, convexity=8) translate([w/2 + d/2, 0, 0]) difference() {
roundRect(w, h, r, center=true);
roundRect(w - _str*2, h - _str*2, r - _str, center=true);
if (outer) roundRect(w, h, r, center=true);
if (inner) roundRect(w - _str*2, h - _str*2, r - _str, 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