Hi guys,

I have a scene graph with only a node containing an OBJ file.
Do you know hot can I get the number of vertices and faces of the OBJ model?

Actually I am using osg::Stats 
osg::Stats* stats = _viewer->getCamera()->getStats();
I get the attribute map...
const osg::Stats::AttributeMap& attributes = stats->getAttributeMap(i);
I iterate and then I am able to get the 

-Visible number of GL_TRIANGLE_STRIP
-Visible vertex count

that seems to be the values I need...

However the real number of faces of the OBJ is different from 
GL_TRIANGLE_STRIP, and the real number of vertices of the OBJ is different from 
Vertex count. I know because I checked using 3DS max.

How can I get the correct values?

Thank you!

Cheers,
John

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50457#50457





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

Reply via email to