EDGEcut is a tool for generating surface meshes for a computational domain with topography. It takes as input a regular sampling from a topographical profile and generates a simple triangular surface mesh using a six-sided box. The topography is sampled at the same resolution as the input whereas the other five sides can be coarsened. The topography mesh and boundary mesh are then output in OFF format as separate files. The tool meshio can be used for mesh-format conversions. EDGEcut’s output is the input for volume mesher, e.g., Gmsh.
Zoom showing the triangulation and side-coarsening for the box above.