You use the NodePath methods, the node path is the path to the node of interest. The OSG supports children with multiple parents, so passing in just the node itself can produce multiple hits.
You can get the node paths from a node using node::getParentalNodePaths() On 5/23/07, Miguel Martinez <[EMAIL PROTECTED]> wrote:
Hi all, I've started using osgViewer, and to get intersections I've found these functions: bool View::computeIntersections(float x,float y, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask) bool View::computeIntersections(float x,float y, osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask) But i need to get intersections from a given node from the scene, not the entire graph, as I used to do with osgProducer::Viewer : bool osgProducer::computeIntersections (float x, float y, osg::Node *node, osgUtil::IntersectVisitor::HitList &hits, osg::Node::NodeMask traversalMask) Is there is any way to use a similar function using osgViewer::View ? Thanks. // Miguel Martinez _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
