[osg-users] LIMIT_NEAREST in PolytopeIntersector doesn't do anything?

Jad Killian m.hasani at outlook.com
Tue Nov 6 02:10:42 PST 2018


Hi,

I'm trying to do a box selection using osgUtil::PolytopeIntersector. It works nicely but it selects drawables that are occluded behind other drawables. 

I tried to use the LIMIT_NEAREST option to only select visible drawables, but nothing changes. Other options (e.g. LIMIT_ONE) works fine. Looking at the source code of the polytope intersector, I can see any use of the LIMIT_NEAREST flag.

Is it not implemented?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75170#75170







More information about the osg-users mailing list