POV-Ray : Newsgroups : povray.general : Macro Help : Re: Macro Help Server Time
19 Nov 2024 09:27:16 EST (-0500)
  Re: Macro Help  
From: Christopher James Huff
Date: 20 Mar 2002 19:10:34
Message: <chrishuff-DE532F.19104320032002@netplex.aussie.org>
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

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