Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple polygons in mesh2d_delete() #35

Closed
veenstrajelmer opened this issue Feb 7, 2023 · 0 comments
Closed

Add support for multiple polygons in mesh2d_delete() #35

veenstrajelmer opened this issue Feb 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@veenstrajelmer
Copy link

veenstrajelmer commented Feb 7, 2023

Is your feature request related to a problem? Please describe.
Currently, deleting networks within a multiplolygon is possible via two ways:

  • looping over each polygon, greating a meshkernel.GeometryList() to use in mk.mesh2d_delete()
  • concatenating the polygons with -999 values (an arbitrary value), nans are not supported.

Describe the solution you'd like
It would be convenient if a list of meshkernel.GeometryList() could be supplied to mk.mesh2d_delete(). Maybe even better, if the hydrolib.core.dflowfm.polyfile.models.PolyFile and the meshkernel.GeometryList() are convertible to each other (or if the classes are aligned with each other)

Describe alternatives you've considered
Options in the description above, but these are a bit cumbersome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant