Skip to content
Snippets Groups Projects
Commit 831d15a1 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MeL] Add mesh equality/inequality comparison.

parent eb10bff7
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,16 @@ protected: ...@@ -188,6 +188,16 @@ protected:
}; /* class */ }; /* 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. /// Scales the mesh property with name \c property_name by given \c factor.
/// \note The property must be a "double" property. /// \note The property must be a "double" property.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment