Compare two object's mesh data


There is one problem.
I’ve got two objects.How can I compare their mesh data, not by names?

Get to the vertices of the mesh and compare those?

Or try bmesh:

If that’s what you mean?

It highly depends on your data. Do two objects use the same mesh datablock? Are they two separate meshes, but with identical geometry? Did they start off with same geometry, but one rotated later? (the mesh data, not the object!). Do they have different number of vertices/edges/faces, and you wanna measure the similarity?

They are two separate meshes, but with identical geometry.