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

feat(GeomUtil): add geometry module with point_in_polygon utility #1407

Merged
merged 3 commits into from
Oct 29, 2023

Conversation

wpbonelli
Copy link
Contributor

@wpbonelli wpbonelli commented Oct 19, 2023

  • add GeomUtilModule with point_in_polygon() function
  • unit test rectangular cell interior/exterior and edge cases (vertices/faces)
  • ported from Javascript solution https://stackoverflow.com/a/63436180/6514033
  • for use by PRT to check particle release point coordinates with cell IDs — boundary points are included
  • accepts one point, could be reimplemented to support arrays like flopy but not yet needed and approach would need modification to include edge cases I think

@wpbonelli wpbonelli marked this pull request as ready for review October 19, 2023 18:54
@wpbonelli wpbonelli merged commit 88ec384 into MODFLOW-USGS:develop Oct 29, 2023
15 checks passed
@wpbonelli wpbonelli deleted the geomutil branch October 29, 2023 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants