diff --git a/MeshLib/Mesh.h b/MeshLib/Mesh.h
index 44d0059239ed2f5cec76dcc62a56f4278830e7b2..5cf9460d5dd9f247a1d1887f19f708f105c8cfa1 100644
--- a/MeshLib/Mesh.h
+++ b/MeshLib/Mesh.h
@@ -188,6 +188,16 @@ protected:
 }; /* class */
 
 
+/// Meshes are equal if their id's are equal.
+inline bool operator==(Mesh const& a, Mesh const& b)
+{
+    return a.getID() == b.getID();
+}
+
+inline bool operator!=(Mesh const& a, Mesh const& b)
+{
+    return !(a == b);
+}
 
 /// Scales the mesh property with name \c property_name by given \c factor.
 /// \note The property must be a "double" property.