discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Making an elbow

P
Parkinbot
Sat, May 13, 2017 9:24 PM

A "cheap" way would be to use spheres, as shown in the following code.

//right angle tube for Richard Pitz's art system

$fn=60;
difference()
{
union()  {
cylinder(40, 9, 9, center = false);
translate([0, 0, 40]) rotate([0, 90, 0]) cylinder(50, 9, 9, center =
false);
translate([0, 0, 40]) sphere(9);
}
union()  {
translate([0, 0, -0.5]) cylinder(39, 6, 6, center = false);
translate([1.5, 0, 40]) rotate([0, 90, 0]) cylinder(49, 6, 6, center =
false);
translate([0, 0, 40]) sphere(6);
}
}//difference

If you want even softer bows you can try to use code like

difference()
{
rotate_extrude(angle=90)  translate([15, 0, 0])circle(9);
rotate_extrude(angle=90)  translate([15, 0, 0])circle(6);
}

of couse there are also good libraries out there in Thingiverse (e.g.
http://www.thingiverse.com/thing:1839527) or you can try with

--
View this message in context: http://forum.openscad.org/Making-an-elbow-tp21456p21458.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

A "cheap" way would be to use spheres, as shown in the following code. > //right angle tube for Richard Pitz's art system > > $fn=60; > difference() > { > union() { > cylinder(40, 9, 9, center = false); > translate([0, 0, 40]) rotate([0, 90, 0]) cylinder(50, 9, 9, center = > false); > translate([0, 0, 40]) sphere(9); > } > union() { > translate([0, 0, -0.5]) cylinder(39, 6, 6, center = false); > translate([1.5, 0, 40]) rotate([0, 90, 0]) cylinder(49, 6, 6, center = > false); > translate([0, 0, 40]) sphere(6); > } > }//difference If you want even softer bows you can try to use code like > difference() > { > rotate_extrude(angle=90) translate([15, 0, 0])circle(9); > rotate_extrude(angle=90) translate([15, 0, 0])circle(6); > } of couse there are also good libraries out there in Thingiverse (e.g. http://www.thingiverse.com/thing:1839527) or you can try with -- View this message in context: http://forum.openscad.org/Making-an-elbow-tp21456p21458.html Sent from the OpenSCAD mailing list archive at Nabble.com.