[osg-users] LineOfSight intersection returning geometry

Tony Vasile minghia at gmail.com
Thu Jan 21 18:31:33 PST 2016


Thanks for that. I found my answer about an hour after posting this one.

By the way what are the following fields in osgUtil::LineSegmentIntersector::Intersection :

double                          ratio;
            osg::NodePath                   nodePath;
            osg::ref_ptr<osg::Drawable>     drawable;
            osg::ref_ptr<osg::RefMatrix>    matrix;
            osg::Vec3d                      localIntersectionPoint;
            osg::Vec3                       localIntersectionNormal;
            IndexList                       indexList;
            RatioList                       ratioList;
            unsigned int                    primitiveIndex;

Things like the nodePath, drawable, localIntersectionPoint, and  the localIntersectionNormal, I can work out what the are. But what are the ratio, ratioList, primitiveIndex, and the matrix? Is the matrix a transformation matrix?

------------------------
Tony V

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








More information about the osg-users mailing list