[osg-users] osgUtil::LineSegmentIntersector performance issues

Andrea Martini martini.andrea at gmail.com
Wed Dec 5 00:17:58 PST 2018


Hi Robert,
thank you for your suggestion.
After using of :  

osgDB::Registry::instance()->setBuildKdTreesHint(osgDB::Options::BUILD_KDTREES);

and 

osgUtil::IntersectionVisitor iv(intersector.get());
iv.setUseKdTreeWhenAvailable(true);

intersector visitor performances are good again.

Now, the code:

subgraph->accept(iv);

requires (in the same scenes yesterday described) only 0.01 ms. 


Thank you 

Cheers,
Andrea

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







More information about the osg-users mailing list