Closed RuudHurkmans closed 2 months ago
@RuudHurkmans could it be that the polygon is not contiguous? For instance at the vertical lines the polygon is actually disconnected and therefore consists of multiple polygons? Also, could you attach the required data to the issue?
@veenstrajelmer not that I can see. It's just one single polygon, not a multigeometry feature. I forgot to attach the used geometry-file. Here it is:
When using meshkernel 4.2.0, the result seems to be as expected:
The minimal meshkernel version will be bumped as part of #692.
Generate a mesh in a single complex polygon
Based on earlier test with simple polygons, I rewrote code to generate a mesh within a polygon by generating a mesh within the polygon bounds and then clipping everything outside.
Furthermore, I think an third option for the deletemeshoption would be useful for this case as well.
It's almost correct but I don't understand the vertical lines.
Code (Sorry, it's a bit much but i needed to include some helper functions)