CHLNDDEV / OceanMesh2D

A two-dimensional triangular mesh generator with pre- and post-processing utilities written in pure MATLAB (no toolboxes required) designed specifically to build models that solve shallow-water equations or wave equations in a coastal environment (ADCIRC, FVCOM, WaveWatch3, SWAN, SCHISM, Telemac, etc.).
https://github.com/sponsors/krober10nd
GNU General Public License v3.0
181 stars 65 forks source link

remeshing polygons preserving boundary #157

Closed krober10nd closed 3 years ago

krober10nd commented 3 years ago
WPringle commented 3 years ago

Can the Example_12 work without the user clicking on plot? Would prefer that we have the option for a function input that would make the clicking unnecessary (provides the hole number), but if this function input is not used then it requires clicking/user inline input.

krober10nd commented 3 years ago

I knew you were going to say that.

krober10nd commented 3 years ago

Okay, so now by default it will extract the polygon of the extracted subdomain automatically without user clicking. If the user passes auto=0 to the msh.get_poly method, then it will display the figure for you to click (for more complex non-obvious cases).

I also expanded the patch in the example so it shows how the code takes into the OM mesh sizing function.