[addon] Triangle Count Display

http://i.imgur.com/cIOxyl.png

Proof-of-concept script/plugin to show how many triangles your 3d model would have
if all its faces were converted to triangles.

This is mostly useful for videogame models where polygon budget is quantified in triangles, since game engines convert everything to triangles anyway.

I know little of Blender Python scripting so this script is very rough and amateurish.

Script here: http://pastebin.com/JY2xx85u

Limitations:

  1. Only works properly on one 3D View for now. Multiple 3D Views don’t display their respective triangle counts properly.
  2. Doesn’t update while a mesh is being edited. Only updates once the user goes back to object mode.
  3. Triangle count of selection only works on objects as a whole. Doesn’t count per selected faces while in edit mode.

Usage:

The code for this is mostly based on the screencast keys plugin, so it works the same way. To enable, run the script and your 3d views’ Properties Panel will have a new “Poly Count Display” part. Click the “Start display” button to show the triangle count overlaid on the 3d view.

Thank you very much! Despite the limitations it’s a workflow life saver, I was becoming mad having to use A-CTRL-T-CTRL-Z all the time.

Thank you for this. Elegant simple solution. Love how it works with the whole scene on a layer as well as on a per object basis when you select them. Great work.