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 grid subdivision / rasterization algorithms #1232

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Feb 4, 2025

As discussed in #967, adds functions for:
(1) subdividing a geometry by a rectangular grid
(2) computing the fraction of each cell in a grid that is covered by a polygon

Performance in the included benchmark is 1-3 orders of magnitude faster than repeated calls to Geometry::intersection

image

Code was adapted and pared down from https://github.com/isciences/exactextract

@dbaston dbaston added the Enhancement New feature or feature improvement. label Feb 4, 2025
@dbaston dbaston marked this pull request as draft February 4, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or feature improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant