You can use osg::Vec3Array as an std::vector<Vec3> (in fact, it inherits from it). So all your iterators and algorithms will work as expected.
-don
On 11/6/06, trent bottin <[EMAIL PROTECTED]> 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.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.Trentp.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/
