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

FastBingTileGenerator for significantly speeding up grid generation #245

Merged

Conversation

joshuacortez
Copy link
Member

@joshuacortez joshuacortez commented Aug 6, 2024

This PR adds a new gridding class FastBingTileGenerator that significantly speeds up grid generation. This is added in 00_grids.ipynb.

FastBingTileGenerator leverages the voxel traversal algorithm and the scanline fill algorithm to get all pixels given the vertices of a polygon. The utility functions for these algorithms are defined in 15_polygon_fill.ipynb with corresponding examples.

Reviewers should look at the ff notebooks

  1. 00_grids.ipynb
  2. 15_polygon_fill.ipynb
  3. tutorial.grids.ipynb

Remaining To-dos:

  • Create tests for FastBingTileGenerator
  • Update documentation site
  • Updating Google Colab links

Feedback is appreciated!

@joshuacortez joshuacortez added the enhancement New feature or request label Aug 6, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@joshuacortez joshuacortez changed the title FastBingTileGenerator for significantly speeding up grid generation FastBingTileGenerator for significantly speeding up grid generation [WIP] Aug 6, 2024
@joshuacortez joshuacortez changed the title FastBingTileGenerator for significantly speeding up grid generation [WIP] [WIP] FastBingTileGenerator for significantly speeding up grid generation Aug 6, 2024
@joshuacortez joshuacortez changed the title [WIP] FastBingTileGenerator for significantly speeding up grid generation FastBingTileGenerator for significantly speeding up grid generation Aug 6, 2024
@joshuacortez
Copy link
Member Author

Resolves #212 , #218 , #235

notebooks/15_polygon_fill.ipynb Show resolved Hide resolved
notebooks/15_polygon_fill.ipynb Show resolved Hide resolved
notebooks/15_polygon_fill.ipynb Show resolved Hide resolved
@joshuacortez joshuacortez merged commit 1e69da3 into thinkingmachines:master Aug 8, 2024
1 check passed
@joshuacortez joshuacortez deleted the feat/scanline_gridding branch August 8, 2024 07:42
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

Successfully merging this pull request may close these issues.

2 participants