If you can define the object with a function (like an isosurface), you could
use VRand_In_Box to sample random points in the object's bounding box until
you find a point where the function returns a value very close to zero
(closer to zero is closer to the surface, but if you accept numbers farther
from zero it will work faster).
- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]
Post a reply to this message
|