POV-Ray : Newsgroups : povray.binaries.images : seven arms : Re: seven arms Server Time
14 Nov 2024 10:16:48 EST (-0500)
  Re: seven arms  
From: Warp
Date: 15 Aug 2009 12:26:06
Message: <4a86e19e$1@news.povray.org>
triple_r wrote:
> In short, to get around the problem use a random angle and a random radius, but
> take the square root of the radius before you use it, i.e.:
> 
> translate <50*sqrt(rand(rnd_tree)),0,0>

  To some it might sound that the square root "trick" is completely
arbitrary and that it just happens to give "close enough" results to be
acceptably believable.

  However, the fact is that the square root is the mathematically exact
solution to the problem. The reason is simple: The density of the
elements does indeed change by (exactly) the square of the distance from
the center, and thus to counter that you take the square root, in which
case you get an even distribution along the whole surface.


Post a reply to this message

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