Re: [osg-users] Getting raw vertex data

2006-08-22 Thread Robert Osfield
Also consider using the osg::TriangleIndexFunctor for iteratoring through the drawables, it simplifies the job quite a bit.  Have a look at the src/osgUtil/IntersectVisitor.cpp for an example of both a visitor and the functor being used in action. ___ osg

Re: [osg-users] Getting raw vertex data

2006-08-21 Thread Donald Tidrow
The other option is to use a NodeVisitor to accumulate a list of pointers to all the osg::Geometry drawables in the scenegraph that you get from loading a .osg file. Take a look at 'FindNamedNodeVisitor' in examples/osgsimulation/osgsimulation.cpp for an example of a simple node visitor class. D

Re: [osg-users] Getting raw vertex data

2006-08-21 Thread Don Burns
is valid, how can I cast that pointer to a osg::Geometry* safely?   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Don Burns Sent: Friday, August 18, 2006 4:25 PM To: osg users Subject: Re: [osg-users] Getting raw vertex data   Look at osg::Geometry.  All the API func

RE: [osg-users] Getting raw vertex data

2006-08-21 Thread Jeff Kershner
] Getting raw vertex data   Look at osg::Geometry.  All the API functions for getting this information start there. -don On 8/18/06, Jeff Kershner <[EMAIL PROTECTED]> wrote: I can't find how to get the vertex buffer, triangle data, stride, normals, etc… from an osgNode.  I

Re: [osg-users] Getting raw vertex data

2006-08-18 Thread Don Burns
Look at osg::Geometry.  All the API functions for getting this information start there. -donOn 8/18/06, Jeff Kershner <[EMAIL PROTECTED]> wrote: I can't find how to get the vertex buffer, triangle data, stride, normals, etc… from an osgNode.  I need to be able to do this so I can pass