OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
MeshBuilder.hpp File Reference

Topology construction and geometry precomputation for the 2D mesh. More...

Include dependency graph for MeshBuilder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::twoD
 

Functions

void openswmm::twoD::buildMeshTopology (MeshData &mesh)
 Build mesh topology and precompute geometry from raw vertex/triangle data.
 
std::string openswmm::twoD::validateMesh (const MeshData &mesh)
 Validate mesh data for consistency.
 
void openswmm::twoD::recomputeVertexZDependents (MeshData &mesh, int vidx)
 Recompute Z-derived per-triangle / per-edge geometry for triangles incident to a vertex whose Z just changed.
 

Detailed Description

Topology construction and geometry precomputation for the 2D mesh.

After parsing [2D_VERTICES] and [2D_TRIANGLES], MeshBuilder computes:

  • Edge-neighbour adjacency via sorted vertex-pair hash map
  • Edge geometry (length, outward normal, midpoint)
  • Cell geometry (area, centroid)
  • Boundary edge identification
See also
TWO_DIMENSIONAL_SURFACE_ROUTING_IMPLEMENTATION_STRATEGY.md ยง5.1
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License