So I could do something like this (in pseudocode)?
std::vector< osg::ref_ptr<osg::Vec3Array> > myData;
osg::Vec3f currentDataPoint;
Outerloop...{
osg::ref_ptr<osg::Vec3Array> currentDataArray;
Innerloop {
currentDataPoint.set(...);
currentDataArray->push_back(currentDataPoint);
}
myData.push_back(currentDataArray);
}
Ed
christophe loustaunau wrote:
Hi Ed,
Maybe you could use std::vector<osg::Vec3Array> myArray .
Regards.
On Thu, Nov 20, 2008 at 7:46 PM, Ed <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I need to create a 2Dimensional array of Vec3f. I could do this
the ol'
osg::Vec3f **myArray
way, but wasn't sure if that is the way it "should" be done, as
opposed to osg::ref_ptr, etc. The I thought, maybe there is
already a class for 2Dimensional arrays...but I didn't find one.
Is there such a class?
Ed
_______________________________________________
osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Christophe Loustaunau.
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org