osg::Geometry is _not_ an osg::Node, it is an osg::Drawable.  geode->getDrawable(<index>) will return a Drawable, which should be dynamic_cast to an osg::Geometry.

-don

On 8/21/06, Jeff Kershner <[EMAIL PROTECTED]> wrote:

If I know that an osg::Node* that is a loaded object (*.osg) 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 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 need to be able to do this so I can pass this information to OSD or my own physics engine.

 

How can I do this?

/jk


_______________________________________________
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/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to