discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

How do I make a cylinder with different shapes

TL
Thomas Leonard Gertz
Wed, Mar 14, 2018 7:32 PM

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

A cylinder with a circle in one end and an oval in the other
MF
Michael Frey
Wed, Mar 14, 2018 7:43 PM

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);
}

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); }
TL
Thomas Leonard Gertz
Wed, Mar 14, 2018 8:02 PM

So simple, thanks

2018-03-14 20:43 GMT+01:00 Michael Frey michael.frey@gmx.ch:

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

So simple, thanks 2018-03-14 20:43 GMT+01:00 Michael Frey <michael.frey@gmx.ch>: > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
AB
Antonio Bueno
Wed, Mar 14, 2018 8:09 PM

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 michael.frey@gmx.ch:

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Saludos,
Antonio

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 <michael.frey@gmx.ch>: > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Saludos, Antonio
RP
Ronaldo Persiano
Thu, Mar 15, 2018 12:31 AM

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);

> > 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); ​