Hi all,
I've started using osgViewer::CompositeViewer, and to get intersections
I've found this functions two:
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)
Seems that these two functions create an IntersectionVisitor wich is
accepted by the osg::Camera of the osgViewer::View
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 computeIntersections
<http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classosgProducer_1_1Viewer.html#a42>
(float x, float y, osg::Node
<http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classosg_1_1Node.html>
*node, osgUtil::IntersectVisitor::HitList
<http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classosgUtil_1_1IntersectVisitor.html#w0>
&hits, osg::Node::NodeMask
<http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classosg_1_1Node.html#w1>
traversalMask=0xffffffff)
Can anyone tell me if there is a 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/