[osg-users] UpdateCallback

Julie Green laroux92 at mail.ru
Wed Aug 26 00:06:26 PDT 2015


Stupid me finally got it.

Code:

osg::Geometry surface = new osg::Geometry();
surface->setVertexArray(vertexArray);
surface->setDataVariance(osg::Object::DYNAMIC);
surface->setUpdateCallback(new UpdateSurfaceCallback());



What i don't understand is how to get elements of vertex array in operator method using node pointer.

Julie.

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








More information about the osg-users mailing list