# Elliptic cyclide by inversion of a torus

**Saturn Elephant**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

An elliptic Dupin cyclide can be obtained by inversion of a torus with respect to a sphere. In the previous post, I showed a rotoid (an helix) dancing around a cyclide:

I constructed this dancing rotoid in the same way as the dancing rotoid around a torus:

Click here if you want the POV-Ray code for this animation.

Now, what happens if one inverts these two geometrical objects, the torus and the rotoid, with respect to a sphere? The torus will become a cyclide, as previously said, and what will happen for the rotoid? Here is the answer:

The R code for this animation is provided in this gist (if it looks complicated, that’s because I start with the cyclide, and I derive the torus and the inversion which yield this cyclide).

Another nice application of this mathematical fact is the construction
of *Steiner chains*:

(code available in this gist).

The point \(I\) is the center of the
circle of inversion. The above animation shows a 2D Steiner chain but we
can do the same in 3D. When there are six spheres, this is called a
*Soddy hexlet*. Here is a Soddy hexlet with the
*Villarceau circles* of the cyclide:

The R code which produces this animation is provided in this gist.

I did the same picture with POV-Ray:

Go to this gist if you want the code.

And maybe you remember
this previous post, where I show how one can construct *nested* 3D Steiner chains.

**leave a comment**for the author, please follow the link and comment on their blog:

**Saturn Elephant**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.