osg::NodePath is:
typedef std::vector< Node* > osg::NodePath

Since you have two Node*s that you're looking for, you can iterate through the 
NodePath just like any other vector and compare your pointer to the pointers in 
the vector.

You could also apply your intersection visitor to the nodes you're interested 
in rather than the scene root and just check if it intersects with anything in 
that case.

I haven't worked with intersectors in a while though so I may be wrong.

Cheers,
Tom

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to