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

Go to the source code of this file.

Classes

struct  mesh::AutoCoupleResult
 Result of findCoincidentNodes. More...
 

Namespaces

namespace  mesh
 

Functions

double mesh::defaultCoincidenceTol (const MeshResult &mesh)
 Scale-free coincidence tolerance: 1e-6 × the mesh bbox diagonal (min 1e-9) — exact coordinate match with float / .inp-rounding slop.
 
AutoCoupleResult mesh::findCoincidentNodes (const MeshResult &mesh, const QVector< QPair< QString, QPointF > > &nodes, const QList< int > &targets={}, double tol=-1.0)
 Match SWMM nodes to coincident mesh vertices.
 

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

Coincident-node matching for the mesh toolbar's Auto-couple action: pairs mesh vertices with the SWMM node sitting at the same map coordinate so the coupling can be applied automatically. Pure functions over MeshResult — no Qt-widgets, no layer dependency — so the matching is unit-testable.