[osg-users] Vec3Array Deep Copy
Erik Hensens
ehensens at hunter.com
Thu Aug 20 10:30:24 PDT 2015
Hi everyone!
I have a simple question but I just can't figure it out. What is the proper way to copy a Vec3Array? The code below is not right:
Code:
osg::ref_ptr < osg::Vec3Array > pVertexArray = new osg::Vec3Array;
...
osg::ref_ptr < osg::Vec3Array > pCopy = new osg::Vec3Array(pVertexArray, osg::CopyOp::DEEP_COPY_ALL);
I get the compilation error below:
Code:
error : no matching function for call to 'osg::TemplateArray < osg::Vec3f, (osg::Array::Type)28u, 3, 5126 > ::TemplateArray(osg::ref_ptr<osg::TemplateArray < osg::Vec3f, (osg::Array::Type)28u, 3, 5126 > > &, osg::CopyOp::Options)'
Thanks very much for your help!
Cheers,
Erik
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64852#64852
More information about the osg-users
mailing list