POV-Ray : Newsgroups : povray.programming : Question regarding formula for a torus : Re: Question regarding formula for a torus Server Time
28 Jul 2024 16:17:39 EDT (-0400)
  Re: Question regarding formula for a torus  
From: Warp
Date: 30 Mar 2000 03:45:45
Message: <38e31439@news.povray.org>
Ken Cecka <cec### [at] alumniwashingtonedu> wrote:
: 1.  A circle of radius r_1 swept about an arbitrary axis in space at a
: distance
:     r_0 from that axis.

: 2.  x^4 + y^4 + z^4 + 2 x^2 y^2 + 2 x^2 z^2 + 2 y^2 z^2 -
:     2 (r_0^2 + r_1^2) x^2 + 2 (r_0^2 - r_1^2) y^2 -
:     2 (r_0^2 + r_1^2) z^2 + (r_0^2 - r_1^2)^2 = 0

: The equation is copied from povray.doc.  So my problem is, the two
: definitions produce different sized toruses.

  There must be some bug in your code.

  Btw, see http://iki.fi/warp/polytutorial/
  I used the torus as one example there.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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