Re: [Plib-users] intersection MAX_HITS limitation
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-10-02 03:19:53
|
lo...@sl... wrote: > All of the code in PLIB that deals with intersection testing (ssgIsect, > ssgHOT, etc.) has a limit of returning 100 records of hit data (see > http://plib.sourceforge.net/ssg/non_class.html and the code, look for > MAX_HITS). Was this an arbitrary limit or a technical limit? The reason > I ask is because it seems to be an awfully low limit in my opinion but > maybe that's because I'm missing the reasoning behind it being 100. I think it's an arbitary limit...I don't think it's awfully low - to the contrary - it's rather unusual to actually intersect more than a handful of triangles. Remember this is using an infinitely thin ray and only recording triangles that were actually intersected. I think 100 is actually a rather generous limit. Still - it's only memory - so if you feel a desperate need to increase it, please feel free. I'd be suspicious of poor design elsewhere if there truly were more than 100 triangles in line for an intersection request. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |