I will have to do the same thing as you (only one intersection). I think 
to inherit from IntersectVisitor and overloading apply(Geode) and 
cut/paste the  intersect drawable with small changes to return after one 
hit. It means to duplicate code.

Maybe there is something better to do that.


Glenn Waldron wrote:
> Greetings,
>
> Is there a way to tell the osgUtil::IntersectionVisitor to stop 
> searching once it finds one (or "n") intersections?
>
> I'm intersecting a PagedLOD terrain, and using a ReadCallback to 
> always get the highest LOD. It works, but in order to speed it up I'd 
> like it to stop immediately after recording that first hit. In this 
> particular case I'm always expecting exactly one intersection.
>
> Thanks in advance. -gw
>
> -- 
> Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 
> 703-652-4791
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>   

-- 
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


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

Reply via email to