Hi,

I wan't to modifie the value of some vertex of my scene.

I read a model from a file and store it in a node :

osg::ref_ptr<osg::Node> node (new osg::Node());
node=osgDB::readNodeFile(file);

Then i wan't to change the value of some vertex of that node.
I have made a class with a node visitor :

class Planet : public osg::NodeCallback
{
public:
        ...
        virtual void operator()( osg::Node* node, osg::NodeVisitor* nv )
        {
             // Continue traversing so that OSG can proces/ any other nodes
with callbacks.
             traverse( node, nv );
        }
        ...
}

But now i don't know how to get the array of vertex with this NodeVisitor, i
haven't found any function to do this.

If someone knows how to do this it will be helpfull.
thanks.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to