Measuring tri-strip efficiency in Maya?

Hello all,

Does anyone know of a script/plugin that returns a poly count that accounts for hard edges, material changes, UV boundaries etc? Maya’s standard poly counter just returns a number of verts or triangles.

using selection constraints, it’s pretty straightforward:

soft/hard edges

sel=cmds.ls(sl=True)
cmds.polySelectConstraint(type=0x8000, mode=3, smoothness=1)
print ‘hard edges: %s’ % cmds.polyEvaluate()[‘edgeComponent’]
cmds.polySelectConstraint(type=0x8000, mode=3, smoothness=2)
print ‘soft edges: %s’ % cmds.polyEvaluate()[‘edgeComponent’]
cmds.polySelectConstraint(disable=True)
cmds.select(sel)