El Lunes, 5 de Marzo de 2007 16:41, Thrall, Bryan escribió:
> >     osg::Geometry* geo=(osg::Geometry*)machineNode;

> osgDB::readNodeFile() returns an osg::Node, but osg::Geometry is not a
> Node, it is a osg::Drawable. So, at the very least, readNodeFile in this
> case will return an osg::Geode (which is a Node, and will contain
> Drawables which might be Geometry), but I don't know any thing about the
> OSG 3DS reader, so it might return a more complicated structure of Nodes
> than that.

In addition of what Bryan said, I would stress the use of C++ type casts like 
dynamic_cast, which could be used to verify safely if the Node returned is 
indeed a Geode.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to