Hi John,

"John Galt" writes:

> I can extract the first and the last hits using HitList.front() and 
> HitList.back() but I am having trouble with extracting the other hits in 
> between them.

>From include/osgUtil/IntersectVisitor, line 110:
 
typedef std::vector<Hit> HitList;

So HitList is a vector, and you have several possibilities,

* Get the iterator for the first element with HitList::begin() and then
  increment it until HitList::end()

* Index the elements with HitList::operator[].

* ...

Anyway, osgUtil::IntersectVisitor is deprecated in favor of
osgUtil::IntersectionVisitor, consider using it.

-- 
Alberto

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to