Loading...
Searching...
No Matches
meshedgekey.h
Go to the documentation of this file.
1
15
16#ifndef OPENSWMMVIS_MESH_MESHEDGEKEY_H
17#define OPENSWMMVIS_MESH_MESHEDGEKEY_H
18
19#include <QPair>
20
21namespace mesh
22{
23
34inline QPair<int, int> edgeKey(int a, int b) noexcept
35{
36 return a < b ? qMakePair(a, b) : qMakePair(b, a);
37}
38
39} // namespace mesh
40
41#endif // OPENSWMMVIS_MESH_MESHEDGEKEY_H
The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and...
QPair< int, int > edgeKey(int a, int b) noexcept
Normalize two endpoint identifiers into an undirected ordered key.
Definition meshedgekey.h:34