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

Piping adjustment

parent 1bb46de7
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,14 @@ module cornerPipe(width, height, diameter, angle, radius, strength, center=false
}
}
// TODO: LayOnFace? Use a better name maybe…?
module cornerPipeLayOnFace(width, height, diameter, angle, radius, strength, center=false) {
module cornerPipeLayOnFace(width, height, diameter, angle, radius, strength, center=false, centerX=false, centerY=false) {
ty = diameter/2 + height/2;
tx = center || centerX ? -height/2 : 0;
ty = center || centerY ? -width/2 : 0;
translate([0, ty, 0]) rotate([90, 0, -90]) cornerPipe(width=width, height=height, diameter=diameter, angle=angle, radius=radius, strength=strength, center=center);
translate([tx + height, ty + width + diameter/2, 0]) rotate([90, 0, -90]) cornerPipe(width=width, height=height, diameter=diameter, angle=angle, radius=radius, strength=strength, center=center);
}
// cornerPipe(20, 10, 5, 90, 1, 1, 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