please ignore this one. I figured that out
Nick

http://www.linkedin.com/in/tnikolov


On Mon, Dec 7, 2009 at 5:15 AM, Trajce Nikolov <nikolov.tra...@gmail.com>wrote:

> The attachment was too big . Now should be ok
>
> Nick
>
> http://www.linkedin.com/in/tnikolov
> Sent from Gümüşsuyu, İstanbul, Turkey
>
> On Mon, Dec 7, 2009 at 4:55 AM, Trajce Nikolov 
> <nikolov.tra...@gmail.com>wrote:
>
>> Hi community,
>>
>> I have osg file and I am doing traversal to get nodes with given name. In
>> the osg file, I see the Geode with the name, however the visitor never gets
>> there
>>
>> Here is my Visitor and the file is attached
>>
>> class FindMirrorGeometryNodeVisitor : public osg::NodeVisitor
>> {
>> public:
>> FindMirrorGeometryNodeVisitor()
>>  : osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
>> {
>> }
>>
>> virtual void apply(osg::Group& node)
>> {
>> for (unsigned int i=0; i<node.getNumChildren(); ++i)
>>  {
>> traverse(*node.getChild(i));
>> }
>>  }
>>
>> virtual void apply(osg::Geode& node)
>> {
>>  osg::Node::DescriptionList& dl = node.getDescriptions();
>> osg::Node::DescriptionList::iterator itr = dl.begin();
>>  for (; itr != dl.end(); ++itr)
>> {
>> if (itr->find_first_of("#MIRROR") != std::string::npos)
>>  {
>> std::cout << "Never gets here !" << std::endl;
>>  }
>> }
>> traverse(node);
>>  }
>> };
>>
>>
>> Any ideas? Can you give it a shot. I should be up to date with the svn
>>
>> Nick
>>
>> http://www.linkedin.com/in/tnikolov
>> Sent from Gümüşsuyu, İstanbul, Turkey
>>
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to