POV-Ray : Newsgroups : povray.programming : idea:toroidal pattern : Re: idea:toroidal pattern Server Time
28 Jul 2024 20:19:35 EDT (-0400)
  Re: idea:toroidal pattern  
From: PoD
Date: 7 Jul 1999 17:48:09
Message: <3783CB32.DBBF88BC@merlin.net.au>
Peter Popov wrote:
> 
> Here's what John VanSickle sent to me when I requested that same
> feature (more precisely the equation to use in the SuperPatch).
> 
> "If your circle is centered around the origin and lies in the x-z
> plane, then
> the distance from any point (x,y,z) to the nearest point on the circle
> will
> be:
> 
>   sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) )
> 
> Regards,
> John"
> 
> I needed it for a ring of cigarette smoke, but it does make cool neon,
> too.
> 
> Have fun.
> 
> Peter Popov
> ICQ: 15002700

Cool, I thought that there would be a fairly straight forward way to
calculate it.  Hmm. now maybe I'll even try to implement it.

Cheers, PoD.


Post a reply to this message

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