Hi sdb,

Why not read the source code of osgUtil::SmoothingVisitor? It shows how to
declare a struct derived from the TriangleFunctor and accpet it to a
geometry object. You may have to use Geode::getDrawable() to collect all the
geometries first.

Wang Rui
2008/11/16 <[EMAIL PROTECTED]>

>
> Thanks Wang, I think that the solution for me is TriangleFunctor.
> Do you known if there is some example that I can found on internet?
> I don't know very well c++ and this is the first time that I programming
> for osg (for a immediate problem, this is not my working area), so is not
> easy for me to understand the structure of osg class.
>
> For example, if I have a osg node that load a file:
>
> osg::Node* rootnode = osgDB::readNodeFile("/test.osg");
>
> how can I use on these the TriangleFunctor?
>
> Many thanks!!
>
> sdb
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to