Re: [osg-users] HitLists

2010-06-23 Thread John Galt
Hi, Thanks for the help guys. It worked. Alberto, I considered using IntersectionVisitor at first but found tutorials and examples that use IntersectVisitor so I decided to stick with it. Thank you! Cheers, John -- Read this topic online here:

[osg-users] HitLists

2010-06-22 Thread John Galt
Hi, If my HitList contains multiple hits, how do I extract all of them starting from the first to the last? 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. Thank you! Cheers, John

Re: [osg-users] HitLists

2010-06-22 Thread Trajce (Nick) Nikolov
This should be STL vector. for (unsigned int i=0; iHitList.size(); ++i) myHit = HitList.at(i); -Nick On Tue, Jun 22, 2010 at 8:06 AM, John Galt manu9ak...@gmail.com wrote: Hi, If my HitList contains multiple hits, how do I extract all of them starting from the first to the last? I can

Re: [osg-users] HitLists

2010-06-22 Thread Alberto Luaces
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::vectorHit HitList; So HitList is a vector,