HelloI have a little question about the osg::Array in OpenSceneGraph. In our project we must delete some triangles and normales from an geometry. For that we use iterators and the erase() function. Now we have a big performance problem.
To delete 12'000 triangles with its normales, we have 70'000ms.If i first copy the hole triangles to a std::list, delete the triangles and then copy them back to the osg::DrawElementsUInt structure we only have 100ms.
The std::vector work with linear time and the std::list with constant time, which is much faster.
Now my question. Why use the osg::Array a std::vector and not a std::list?
I'm shure there is a good reason... But I haven't got a clue. Thanks & Have a nice day Daniel Moos
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

