Hi Sergey,
You must be creating a osg::Geometry, Right ? If yes then you can use
function osg::Vec3Array* vertexData = geom->getVertexArray(). Ones you
have vertexData you can add your new vertex as
vertexData->push_back(newVertex);
cheers
RJ
Sergey wrote:
[quote="Rahul Jain"]Hi Sergey,
You need to add your new vertices to the geometry vertex data and
update the first and size of your primitive set which is drawing the line.
thanx Rahul!
One thing I cant find : how to fill drawArrayLines with new vertices
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9982#9982
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org