POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
4 Aug 2024 02:19:25 EDT (-0400)
  Re: Help with a spherical container  
From: Warp
Date: 5 Nov 2003 06:53:01
Message: <3fa8e49d@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
> Imagine a disk, now take a random distance along the radius, and then a random
> rotation. You will get a disproportionate number of points near the center of
> the disk.

  For the same reason the presented method of normalizing a random point
inside the cube will not give an even distribution of points on the
surface of the sphere. The points will be slightly more concentrated
on the direction of the corners of the box (because there are more points
at those directions than eg. in the direction of the main axes).
  Granted, this concentration difference is very small and probably
mostly unnoticeable, but if mathematical distribution evenness is
important, one should know this limitation.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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