Stephan Huber schrieb: > Hi, > > Andreas Goebel schrieb: > >> There is still a problem: How do I tell osg::Geometry that one of the >> arrays size has chaged? It does work, of course, if I do a >> setVertexArray >> again, but if I want it to stay the same vertexArray, is there a way to >> tell the geometry that its size has changed? >> >> In other words: I would need a function like "setVertexArraySizeDirty" . >> > I update the count of the corresponding primitiveSet: > > osg::DrawArrays* da = > dynamic_cast<osg::DrawArrays*>(geo->getPrimitiveSet(0)); > if (da) da->setCount(vertices->size()); > > or something similar... > Thank you,
unfortunately it doesn´t work. I get a crash so deep that I can´t even debug it. Well, so I check myself if the size has changed and if so, I do a setVertexArray again. Reagards, Andreas > HTH, > Stephan > _______________________________________________ > 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

