Hi Farshid, On Thu, Mar 10, 2011 at 5:59 PM, Farshid Lashkari <[email protected]> wrote: > On second thought, I think this option should be an enum. I can also think > of a scenario where a user just wants to know whether the line or polytope > has any intersections, regardless of which drawable it is. So maybe the > option should be something like this: > typedef enum IntersectionLimit {NoLimit, LimitOnePerDrawable, LimitOne}; > void setIntersectionLimit(IntersectionLimit limit); > IntersectionLimit getIntersectionLimit(); > What do you think?
Yes, an enum might be the best route. Another variation would be NearestIntersection, which would just return one intersection per Drawable, but would search for the nearest one. This could allow code to reject inersections with bounding volumes that are further away than the nearest intersection so far found. All these options will add complexity though... Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
