Hi Mathias,

"Mathias Franzius" writes:

> I understand that after calling
>    n = osgDB.readNodeFile(fname)
> I get a Node. However, it should also be a Geode, so I try to call
>    n.asGeode()
> This results in a None type.
> Question 1: what do I do wrong?

I don't know nothing about osgswig, but that statement is not always
true. Usually, the loaders place the geometry read from files under a
Group node. To get the actual Geometry nodes, at least on straight OSG,
one uses a NodeVisitor to ease the hierarchy traversal process.

-- 
Alberto

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to