SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
meshnodemapper.h
Go to the documentation of this file.
1
15#ifndef OPENSWMMVIS_MESH_MESHNODEMAPPER_H
16#define OPENSWMMVIS_MESH_MESHNODEMAPPER_H
17
18#include "mesh/meshresult.h"
19
20#include <QHash>
21#include <QPair>
22#include <QStringList>
23
24namespace mesh {
25
32constexpr double kCellCouplingDefaultCd = 0.65;
33constexpr double kCellCouplingDefaultArea = 2.0;
34
37{
38 QHash<int, QString> vertexMatches;
39 QVector<CellCoupling> cellMatches;
40 QStringList unmatched;
41 QStringList skippedExisting;
42 int sharedCells = 0;
43};
44
64[[nodiscard]] NodeMapResult mapNodesToMesh(
65 const MeshResult &mesh,
66 const QVector<QPair<QString, QPointF>> &nodes,
67 double tol = -1.0,
68 bool preserveExisting = true);
69
70} // namespace mesh
71
72#endif // OPENSWMMVIS_MESH_MESHNODEMAPPER_H
Definition meshcommands.h:302
constexpr double kCellCouplingDefaultCd
Definition meshnodemapper.h:32
constexpr double kCellCouplingDefaultArea
mesh length units²
Definition meshnodemapper.h:33
NodeMapResult mapNodesToMesh(const MeshResult &mesh, const QVector< QPair< QString, QPointF > > &nodes, double tol=-1.0, bool preserveExisting=true)
Map SWMM nodes onto an existing mesh.
Definition meshnodemapper.cpp:50
QVector< int > nodes
Definition profilerouter.cpp:36
Result of MeshGenerator::generate.
Definition meshresult.h:116
Result of mapNodesToMesh.
Definition meshnodemapper.h:37
QStringList skippedExisting
Nodes already coupled (preserved).
Definition meshnodemapper.h:41
int sharedCells
Cells receiving > 1 new node.
Definition meshnodemapper.h:42
QVector< CellCoupling > cellMatches
Node → containing cell rows.
Definition meshnodemapper.h:39
QHash< int, QString > vertexMatches
vertexIdx → node id (coincident).
Definition meshnodemapper.h:38
QStringList unmatched
Nodes outside the mesh.
Definition meshnodemapper.h:40