|
|
In article <3c98eab5$1@news.povray.org>,
"Corey Woodworth" <cdw### [at] mpinetnet> wrote:
> I posted my fool code in p.t.s-f I'm making this scene just so I can
> learn about macros. I have a few questions. How come the cheerios are
> alwawys contained within what looks like a square even though I'm
> useing a disc in VRand_In_Obj? Also how can I get the look to make
> sure the ceerios don't overlap?
It's because you are using a disc. VRand_In_Obj() returns points
*inside* the object, discs don't have an inside (they are infinitely
thin) so it makes several attempts (specifically, 1000 attempts) before
eventually giving up and generating a point inside the bounding box of
the disc. The documentation specifically mentions that this macro only
works on solid objects. If you use a short cylinder, it will work.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|