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
inpmeshreader.h File Reference
#include "meshresult.h"
#include "meshedgebc.h"
#include <QString>
#include <QVector>
Include dependency graph for inpmeshreader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::InpMeshReadResult
 Outcome of InpMeshReader::read. More...
 
class  mesh::InpMeshReader
 

Namespaces

namespace  mesh
 

Functions

bool mesh::unitsHeaderIsSI (const QString &unitsHeader)
 True when unitsHeader (the verbatim ;; UNITS: value) declares a metric mesh, i.e. one the engine will NOT rescale.
 

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

Read the [2D_*] mesh sections — [2D_VERTICES], [2D_TRIANGLES], [2D_QUADS] (mixed meshes: quads appended after the triangles, cell index = n_triangles + j; a triangle row after a quad row is an error), [2D_VERTEX_NODE_MAP], [2D_TRIANGLE_NODE_MAP], the per-edge [2D_BOUNDARY_CONDITIONS] / [2D_EDGE_CONVEYANCE] pair and the GG0a per-cell [2D_INFILTRATION_OPTIONS] / [2D_INFILTRATION_DEFAULTS] / [2D_INFILTRATION] family — from a SWMM .inp, resolving the [2D_MESH_FILE] indirection when present. Mirrors the format produced by mesh::InpMeshWriter.