POV-Ray : Newsgroups : povray.binaries.images : One of those twisted torii thingies - twisted_torus.jpg : Re: SV: One of those twisted torii thingies - twisted_torus.jpg Server Time
2 Oct 2024 08:18:46 EDT (-0400)
  Re: SV: One of those twisted torii thingies - twisted_torus.jpg  
From: Chris Huff
Date: 3 Jul 2000 15:52:43
Message: <chrishuff-D9BA57.14525403072000@news.povray.org>
In article <3960ec67@news.povray.org>, "Bill DeWitt" 
<the### [at] earthlinknet> wrote:

>           translate < sin(I*((2*TURNS)*pi))*RADIUSX,
>                       0.0,
>                       cos(I*((2*TURNS)*pi))*RADIUSZ >

Why not just use something like this instead:

translate vrotate(z, y*turns*360)*< RADIUSX, 0, RADIUSZ>

Or store the RADIUSX and RADIUSZ values in a vector, and do this:

translate vrotate(z, y*turns*360)*RADIUS

If you don't want the y value to go to waste, use it for the number of 
turns. :-)

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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