|
![](/i/fill.gif) |
In article <3c6af3b5$1@news.povray.org>, "RAY" <PCH### [at] yahoo com>
wrote:
> I need a VRand_On_Object for an .inc project, but the best I've
> come up with so far is random traces at the object from in the bounding box
> (using VRand_In_Box an the object) is there a better way?
There really isn't any way to do it in POV-Script, you would have to
implement separate macros for each object. Shooting random rays at the
object should work for simple objects when you aren't too concerned
about an even distribution, though.
Are you sure you need it for an arbitrary object? If you could narrow it
down, it wouldn't be as big of a problem. For example, spheres, boxes,
cylinders, cones, and triangles would be easy.
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |