Welcome! Log In Create A New Profile

Advanced

Ellips shaped torus ?

Posted by Replace 
Ellips shaped torus ?
January 19, 2019 05:04AM
With the help of this forum, I now can write torus shapes, which I often require.

like this :

module torus (diam, thickness){
rotate_extrude ()
translate (v=[diam/2, 0, 0])
circle(thickness/2);
}

It is called with the diameter of the shape and the diameter of the body it is composed of.

But always, they are rotated circles and the torus is (by definition ?) a circular donut shape.

Now, to generate my ellips torus, I cut off half of the circular torus,, move the half over the central axis. and then fill the gaps with a set of cylinders with the same diameter.
That works to get the main ellips shape, but the body is still a circle.

so in effect: Can I rotate an ellips ? And can I rotate over 2 points of rotation, such as ellipses are constructed ?

Thomas


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Re: Ellips shaped torus ?
January 19, 2019 06:39AM
I don't quite get what your asking...

but do you mean this?

module torus (diam, thickness){
$fn=100;
rotate_extrude ()
translate (v=[diam/2, 0, 0])
scale([50/100, 100/100]) circle(thickness/2);
}

scale([50/100, 100/100]) torus (50,10);

Edited 1 time(s). Last edit at 01/19/2019 10:58PM by Dust.
Re: Ellips shaped torus ?
January 22, 2019 03:45AM
Mr. Dust: you know exactly what I mean smileys with beer

This is wat I seek for, Thanks very much !

Thomas


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Sorry, only registered users may post in this forum.

Click here to login