POV-Ray : Newsgroups : povray.general : Torus Equation : Re: Torus Equation Server Time
29 Jul 2024 14:22:59 EDT (-0400)
  Re: Torus Equation  
From: James Foster
Date: 1 Nov 2001 13:50:37
Message: <3BE1997D.9D428719@durham.ac.uk>
Sorry to bring up old news, i've only just signed up to the newsgroups so i'm
going from the start.


You had it right the fist time but you can't simplify it (like that)!!

y = sqrt( 2a * sqrt(b^2 - z^2) + a^2 + b^2 - z^2 - x^2 )
...is about as simple as you can get it.

sqrt(a + b) != sqrt(a) + sqrt(b)

James

PS I'm not a newbie. I've used the original DOS version of POVray (i think a
revision of version 1) so i know where i stand. Infact, i didn't know POV was
being developed until a friend told me about POV 3. Wow. I loved POV then, and
i'm looking forward to getting to grips with it's evolution. See you around
guys.

Justin Rogers wrote:

> y = sqrt( sqrt(4a^2(b^2-z^2)) + a^2 + b^2 - z^2 - x^2 )
>
> simplify
>
> y = sqrt(2a(b-z)) + a + b - z - x
>
> Now that should be the right equation...  Don't quote me or anything.
>
> --
> _____________________________________
> Justin Rogers, CEO DigiTec Web Consultants
> Personal Programmer and Web Consultant
> Email:  dig### [at] 3nnet
> Thomas Jespersen wrote in message <357### [at] daimiaaudk>...
> >Lars Luthman wrote:
> >>
> >> Hi!
> >>
> >> I'm just wondering if anyone has the equation for a torus? I've seen it
> in
> >> the doc file, but I would like to have it in this form: "y = ..."
> >
> >Here it is:
> >
> >(x^2 + y^2 + z^2 - (a^2 + b^2))^2 = 4a^2(b^2 - z^2)
> >
> >This torus is revolved around the z-axis. a is the radius of the torus
> >and b is the radius of the circle revolving around the torus (sorry, I
> >am not english, hope you understood!)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.