Create a tube with rounded rims

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Create a tube with rounded rims

Experimentalist
Hi

Sorry for the nube question.

I am trying to create a tube with rounded rims top and bottom.

Can I extrude this in the Z axis to create the tube:

    rotate_extrude(convexity = 10)
        translate([10, 0, 0])
            circle(d = 1);

Can't figure it out but sure it must be simple

Thanks
Ex
Reply | Threaded
Open this post in threaded view
|

Re: Create a tube with rounded rims

kintel
Administrator
This is one suggesion:

$fa=1;
$fs=0.2;
rotate_extrude(convexity = 10) translate([10, 0, 0]) hull() {
    circle(d = 1);
    translate([0,20]) circle(d = 1);
}

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Create a tube with rounded rims

Experimentalist
Marius

Thanks. Exactly what I was after. I will go and break it down and understand it now

Ex