Hello sdb? (please sign your posts with a real human name, this goes a
long way in making the mailing list discussions more friendly)
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?
As Wang noted, see osgUtil::SmoothingVisitor. You will need to make a
functor (function object, i.e. a class that overrides operator(), the
function call operator) and pass that to an osg::TriangleFunctor.
You can find the source of osgUtil::SmoothingVisitor at
http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osgUtil/SmoothingVisitor.cpp
See line 34 where the SmoothingTriangleFunctor starts. Line 73 is where
the operator() is defined. Then see line 137 for where the
SmoothingTriangleFunctor is used with an osg::TriangleFunctor to do the
actual work.
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