How to get the number of triangles in a mesh
To get the number of vertices, edges, and polygons in a mesh, we can simply take their amount from the desired data block: “vertices”, “edges”, and “polygons”. However, there is no special data block for triangles in the mesh structure.
To get the number of triangles in the mesh, we need to execute the following code: