Hi Ed,

The *Array classes are basically std::vector<Type> so to access the
elements simply do:

   osg::Vec2d dataPoint = (*vda)[nElement];

Or even better

   const osg::Vec2d& dataPoint = (*vda)[nElement];

As this will only require a pointer copy rather 2 doubles.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to