|
![](/i/fill.gif) |
Ron Parker wrote:
>
> In general, it's an impossible task. The best you can do is an
> approximation. For example, try to determine whether the intersection
> of two complex CSG objects is nonempty.
As long as the shapes are basic mathematical objects (like sphere,
cylinder, box, etc.) it is possible to find an precise solution. Of
course if the objects are approximated themselves (like isosurfaces) it is
not.
>
> >Finding out whether two boxes collide could for example be done by
> >'tracing' along all their edges.
>
> Even that wouldn't see the special case where one box is entirely enclosed
> by the other box.
>
All right, as Chris Huff mentioned you could use eval_pattern and the
object pattern (maybe it would be a good idea to make the Inside_Object()
function available in POV script just like trace()).
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |