Rahul Jain wrote:
> 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
> 
> OK. But 
> 
>   
> Code:
>  osg::Vec3Array* vertexData = linesGeom->getVertexArray();
> 
> 
> 
> generates  error: invalid conversion from `osg::Array*' to 'osg::Vec3Array*' 
> 
> 


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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to