Added hash functions

This commit is contained in:
Jan Möbius
2016-06-07 12:56:27 +02:00
parent 46aed2c4f4
commit 8a26487a69

View File

@@ -608,6 +608,10 @@ const LHS mesh_cast(const PolyMeshT<KERNEL> *rhs) {
return MeshCast<LHS, const PolyMeshT<KERNEL>*>::cast(rhs);
}
inline size_t hash_value(const VertexHandle& i) { return i.idx(); }
inline size_t hash_value(const HalfedgeHandle& i) { return i.idx(); }
inline size_t hash_value(const FaceHandle& i) { return i.idx(); }
//=============================================================================
} // namespace OpenMesh