[osg-users] getVertexArray from VBO gemorety

Bruno Oliveira bruno.manata.oliveira at gmail.com
Sun Apr 10 10:42:07 PDT 2016


Hello,

I am creating some gemoetry (point cloud data) and rendering it.

Later, I need to access the vertices in that point cloud, so I store the
geometry pointer and later try to get the array data from the VBO as
follows:

osg::Vec3Array* m_vertices = dynamic_cast<osg::Vec3Array
*>(m_geometry->getVertexArray());

However, this fails. How can I do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160410/55d271c7/attachment-0002.htm>


More information about the osg-users mailing list