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
________________________________
Da: Wang Rui <[EMAIL PROTECTED]>
A: OpenSceneGraph Users <[email protected]>
Inviato: Sabato 15 novembre 2008, 16:34:26
Oggetto: Re: [osg-users] triangles count
Hi sdb,
If you mean count how many triangles in a drawable, just get all the primitive
sets of the geometry and try to analyse them. Another way is to use a
TriangleFunctor. You may have a look at osgUtil::SmoothingVisitor.
Wang Rui
2008/11/15 <[EMAIL PROTECTED]>
Hi,
I need to create a command line utils that open a osg file and write the number
of triangles of the geometry.
There are a simple solution?
Thanks
sdb
Unisciti alla community di Io fotografo e video, il nuovo corso di
fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org