|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |