POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
3 Aug 2024 20:15:52 EDT (-0400)
  Re: Help with a spherical container  
From: Christopher James Huff
Date: 4 Nov 2003 20:44:08
Message: <cjameshuff-E27010.20435004112003@netplex.aussie.org>
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

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