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 File Reference
#include "mesh/meshresult.h"
#include <QHash>
#include <QPair>
#include <QStringList>
Include dependency graph for meshnodemapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::NodeMapResult
 Result of mapNodesToMesh. More...
 

Namespaces

namespace  mesh
 

Functions

NodeMapResult mesh::mapNodesToMesh (const MeshResult &mesh, const QVector< QPair< QString, QPointF > > &nodes, double tol=-1.0, bool preserveExisting=true)
 Map SWMM nodes onto an existing mesh.
 

Variables

constexpr double mesh::kCellCouplingDefaultCd = 0.65
 
constexpr double mesh::kCellCouplingDefaultArea = 2.0
 mesh length units²
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

MESH_DECOUPLED_1D2D_REMAP_PLAN Part C.1 — node→mesh remapping behind the mesh toolbar's "Remap 1D↔2D" action. Decouples 1D↔2D coupling from mesh generation: nodes coincident with a mesh vertex use the existing vertex coupling; non-coincident nodes inside the mesh couple to their containing cell (engine orifice exchange law, one coupling row per node — several nodes may share a cell). Pure functions over MeshResult — no Qt-widgets, no layer dependency — unit-testable.