Hi Nadia,
osgUtil::SmoothingVisitor* smoothing = new osgUtil::SmoothingVisitor();
smoothing->apply(*geode);
That should be:
osgUtil::SmoothingVisitor sv;
geode->accept(sv);
Otherwise, a) you have a memory leak, and b) you're not using the
visitor correctly - you need to give the visitor to the node, not the
other way around.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org