Hi Daniel,
osg::Array's all map to OpenGL so have to be contiguous, std::vector
fits the bill, std::list wouldn't. Regardless of this OpenGL mapping
doing a std::list<> of tens of thousands of small objects would be
really inefficient memory and computation wise - it's only random
inserts/deletes
el Moos <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 05/06/2008 05:11AM
Subject: [osg-users] Arrays in OpenSceneGraph
Hello
I 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 it
El Martes 06 Mayo 2008ES 11:11:25 Daniel Moos escribió:
> 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.
I think it depends on the way one is using the data. If you weren't removing
faces but just alte
Hello
I 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 ha
4 matches
Mail list logo