[osg-users] What numerical parameters are passed when osgUtil::PolytopeIntersector is set MODEL?

mirr...@gmail.com mirro187 at gmail.com
Sun Jan 24 23:59:10 PST 2021


   void pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer* viewer)
   {
               osgUtil::PolytopeIntersector* picker;
               double mx = ea.getXnormalized();
                double my = ea.getYnormalized();
                double w   = 0.05;
                double h   = 0.05;
                picker = new osgUtil::PolytopeIntersector( 
osgUtil::Intersector::MODEL, mx-w, my-h, mx+w, my+h );
    }

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/ff7da331-4f51-4fd9-83e1-b3ff83227efan%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210124/120f65fb/attachment.html>


More information about the osg-users mailing list