0
$\begingroup$

Im looking for a addon or a feature in blender that can analyse my models. I get them from an engineering department and some of the contain for an example small springs (highly detailed shape), which count up 30k triangles. Therefore the entire thing could easily end up being 250k triagles.

I need something that can profil my scene and tell me maybe a list with each mesh and their respective vert, tris, face counts

Any ideas from the comunity.

$\endgroup$
1

1 Answer 1

1
$\begingroup$

There are several ways, with which you can retrieve information about the imported objects in your .blend file.

The Outliner shows all object in a hierarchy in the scene. In Object Mode, the header will show the vertex, face and triangle count of all objects. You can select objects in the outliner and the 3D View.

outliner information

Expand an objects hierarchy with the + icon. It will reveal a mesh datablock. Click on the mesh datablock to enter Edit Mode. In Edit Mode, you can manipulate the vertices, edges and faces in the 3D View. The header will now show the Verts, Faces, Tris count of only this selected object.

single objects info

Scripted

You can load a simple script into Blender's Text Editor and execute it from there. The following script will write the name, vertex count, edge count and face count to a file which is specified in line 4. You will have to change the path according to your needs.

run script

import bpy
import os

path = "U:/PWP/Desktop/info.csv"

with open(path, 'w+') as f:
    for ob in bpy.data.objects:
        v = len(ob.data.vertices)
        e = len(ob.data.edges)
        p = len(ob.data.polygons)
        tris = sum(len(p.vertices) - 2 for p in ob.data.polygons)

        f.write(ob.name)

        for data in [v, e, p, tris]:
            f.write(',' + str(data))
        f.write('\n')

Tris count added from batfinger's comment to this answer. Excluded in the table below.

The created csv file can be opened in various applications such as Notepad or any Office Suite.

csv file

$\endgroup$
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .