Use the NodePath to RealSceneData. On 5/23/07, Miguel Martinez <[EMAIL PROTECTED]> wrote:
Hi Robert, maybe I didn't explain correctly.I have this graph : / Geodes /AuxiliarData \ / \ Geodes Root/ \ \ / Geodes RealSceneData/ \ Geodes I want to get Interesections only for the geometry hanging from the RealSceneData node. I was doing this using osgProducer::computeIntersections, but now I can't with osgViewer any idea? Robert Osfield escribió: > 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/ > _______________________________________________ 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/
