On Mon, 2006-11-06 at 09:37 -0800, trent bottin wrote: > I have the following situation and am not quite sure how to go about > it. I throw out the albeit that I am not the strongest C/++ > programmer, but have a good understaing of programming in general. > > quick version: I have an osg::Array (of class Vec3Array) and need a > std::vector<Vec3>. Is there a quick way to convert.
osg::Array is a "pure virtual", so I assume you're using one of the typedef's in osg/Array? If so, you're already using an std::vector, as they inherit from it. :) (Someone correct me if I'm wrong, but looking at the header I was able to come up with this; never actually been in a situation where I used osg::Vec3Array yet...) > longer version: I have two objects, one is a node containing terrain > data, the other is a Polytope. I am trying to get the vertex list > from the terrain node to be used by the Polytope->contains() method. > The technique I am using thus far is to get the Geometry Object > associated with terrain node and pull the vertex info from the > Geometry->getVertexArray() method. > > Thanks in advance for any assistance. > > Trent > > p.s. apologies for the previous spam. > > ______________________________________________________________________ > Sponsored Link > > Mortgage rates near historic lows: $150,000 loan as low as $579/mo. > Intro-*Terms > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
