Jump to content

General equation of a torus.


BigMoosie

Recommended Posts

I have worked out the formula for plotting a torus but I cannot seem to simplify it into a general equation. This is what I have got:

 

[math](a-\sqrt{x^2 + y^2})^2 + z^2 = b^2[/math]

 

Where [math]a[/math] is the radius from the origin to the center of the pipe and [math]b[/math] is the radius from the center of the pipe to the surface.

 

Any attempt I make to remove the square root just complicates things even more.

Link to comment
Share on other sites

Why do you want to eliminate the square root ? I can't imagine that the square root causes a problem with the plotting ! Nevertheless, you know you can exliminate the sqrt by collecting terms and squareing - only you'll end up with something that has 16 terms !

 

You could, alternatively, use the parametric form :

 

[math]x = (R + rcos \theta) cos \phi [/math]

[math]y = (R + rcos \theta) sin \phi [/math]

[math]z = r sin \phi [/math]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.