Hi Jason, Bruce,

You should be able to get these numbers by iterating over the primitive sets in each drawable. You'll have to count differently depending on primitive type and primitive set type, but it's not that difficult (there may already be a visitor in OSG that does this, I'm not sure).

Yep, PrimitiveFunctor. Search the OSG source code for uses, it's used in a few places including the LineSegmentIntersector / IntersectionVisitor when it tries to intersect to a triangle mesh.

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

Reply via email to