Here's an elbow
//elbow in pipe
$fn=90;
wall =3; //thickness of wall
length =100; //length of each pipe
angle = 120;
od =30; // outside diameter
module rod(){
cylinder (h=length,d=od);
}
module os(){
rod();
rotate([angle,0,0]) rod();
sphere(d=od);
}
module bore(){
cylinder(h=length+5,d=od-wall-wall);
sphere(d=od-wall-wall);
}
module is(){
bore();
rotate([angle,0,0])bore();
}
difference(){
os();
is();
}
On 02/07/2022 23:09, Dave wrote:
I've been using OpenScad for quite a while and find it fits with the
way my mind works in a way that many CAD tools don't.
But I have a need to generate a bend in a pipe and I'm having
difficulty putting it down in scad and I'm hoping for some
help.
In essence I need to generate a pipe that is 30mm in diameter with a
wall thickness of (say) 3mm with a bend of 120 degrees.
It could ether be a smooth bend or a sharp bend - although the latter
would be more useful due to space constraints.
I can sort of see how I might generate a cylinder and diff it with a
cube at an angle, but I cannot see how to join two such
cylinders to form a watertight solid without a lot of fiddling - there
must be a better way.
Any clues, tips, examples very welcome,
Dave
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org