[osg-users] Creating an array of same type a given one

Werner Modenbach Werner.Modenbach at texion.eu
Fri Jan 26 07:44:05 PST 2018


Hi all,

I have to copy data from given arrays (i.e.
geometry->getTexCoordArrayList())
into new arrays of the same type. So I have to do something like

    osg::Geometry::ArrayListtextureCoords=geometry->getTexCoordArrayList();

    osg::Geometry::ArrayListtextureCoordsNew(textureCoords.size());

for(inti=0;i<textureCoordsNew.size();i++)
    textureCoordsNeu[i]=new???   // Do some manipulation and resorting geometry->setTexCoordArrayList(textureCoordsNew);


Has anybody a hint for me how to solve this?

Many thanks in advance.

- Werner -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180126/1685598c/attachment.html>


More information about the osg-users mailing list