|
|
In article <3fa85372$1@news.povray.org>,
"Wesley Parker" <wes### [at] verizonnet> wrote:
> Ok, cool. It works great now. Can you explain how that works?
Find a random point in a 10x10x10 box. If the point is outside the
radius-5 sphere, find another random point in the box. Repeat until you
have a random point in the sphere.
The method the include file uses is a bit more complex, but is overall a
bit faster...the loop method can require several attempts before it
turns up a useable point.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|