POV-Ray : Newsgroups : povray.general : Collision detection: will this work? : Re: Collision detection: will this work? Server Time
9 Aug 2024 01:21:37 EDT (-0400)
  Re: Collision detection: will this work?  
From: Chris Huff
Date: 6 Sep 2000 12:15:35
Message: <chrishuff-42A7BC.11171806092000@news.povray.org>
In article <39B65FC4.4A8EB992@my-dejanews.com>, 
gre### [at] my-dejanewscom wrote:

> Would this work? I am afraid that it will not because povray (megapov),
> I fear, is very lazy about giving true information in the min &
> max_extent functions....

It isn't "being lazy", those functions just return the min and max 
extents of the bounding box. You shouldn't expect it to give the actual 
extents of the object.
Maybe these functions should be called min_bbox() and max_bbox() 
instead, and the *_extent() functions should attempt to find the true 
extents by tracing a bunch of rays at the object. This will be slower, 
but still useable(it is useable even when implemented in POV-Script). 
There may be portions of the objects that don't get hit, but if you need 
a bounding box that is guaranteed to enclose the whole object, you 
should use the *_bbox() functions.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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