How do I make a cylinder with different shapes

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

How do I make a cylinder with different shapes

Thomas Leonard Gertz
A cylinder with a circle in one end and an oval in the other

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

Re: How do I make a cylinder with different shapes

MichaelPFrey
Am 14.03.2018 um 20:32 schrieb Thomas Leonard Gertz:
> A cylinder with a circle in one end and an oval in the other
>
Something like this?

hull(){
     translate([0,0,50])
     scale([1,2,1])
     cylinder(r=10);
     cylinder(r=10);
}

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

Re: How do I make a cylinder with different shapes

Thomas Leonard Gertz
So simple, thanks

2018-03-14 20:43 GMT+01:00 Michael Frey <[hidden email]>:

> Am 14.03.2018 um 20:32 schrieb Thomas Leonard Gertz:
>>
>> A cylinder with a circle in one end and an oval in the other
>>
> Something like this?
>
> hull(){
>     translate([0,0,50])
>     scale([1,2,1])
>     cylinder(r=10);
>     cylinder(r=10);
> }
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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

Re: How do I make a cylinder with different shapes

atnbueno
In reply to this post by MichaelPFrey
I'd do it almost like Michael. A hull() of cones instead of one of cylinders:

hull() {
translate([0, 0, 50])
scale([1, 2, -1]) cylinder(r1=10, r2=0);
cylinder(r1=10, r2=0);
}

(notice also the Z-mirroring)

2018-03-14 20:43 GMT+01:00 Michael Frey <[hidden email]>:
Am 14.03.2018 um 20:32 schrieb Thomas Leonard Gertz:
A cylinder with a circle in one end and an oval in the other

Something like this?

hull(){
    translate([0,0,50])
    scale([1,2,1])
    cylinder(r=10);
    cylinder(r=10);

}

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
Saludos,
Antonio



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

Re: How do I make a cylinder with different shapes

Ronaldo
In reply to this post by Thomas Leonard Gertz
A cylinder with a circle in one end and an oval in the other

linear_extrude(height=20, scale=[1,1.5])  circle(r=10);


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org