POV-Ray : Newsgroups : povray.advanced-users : collision detection : Re: collision detection Server Time
29 Jul 2024 18:29:50 EDT (-0400)
  Re: collision detection  
From: Christoph Hormann
Date: 22 Feb 2001 11:19:18
Message: <3A953C06.F7A4B59D@gmx.de>
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] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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