Polygon count per square inch script or macro

Hi all,
Part of my everyday at work is checking mesh quality. One step of the process is getting polygon count and dividing that by the square inches, gives me polycount/sq in which gives me good ballparks for assessing various aspects of meshes we get from customers and generate in house.

I’m looking for a quick script that will do this as a quick one click solution and spit it out to a dot or text block. Even just to the command line is fine. Anyone have one? Script would need to count the polys, then get square inches of the mesh, then divide polys by the square inches, then pump out a result.

I need it in polygons (tris) per square inch, but I could see a version of the script allowing the ability to change the units to sq ft, sq mm, etc.

Thank you

Hello - try this for a start - does that do what you need?

FacesPerSquareInch.py (522 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"


Perfect, thank you!