[osg-users] Questions about vertex and index arrays for geometry
ratzfatz at digitalmind.de
Sat Oct 27 03:26:45 PDT 2007
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
> 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 =
if (da) da->setCount(vertices->size());
or something similar...
More information about the osg-users