Skip to content

Geometry rewrite#205

Merged
mx-moth merged 9 commits intomainfrom
geometry-rewrite
Dec 15, 2025
Merged

Geometry rewrite#205
mx-moth merged 9 commits intomainfrom
geometry-rewrite

Conversation

@mx-moth
Copy link
Contributor

@mx-moth mx-moth commented Dec 5, 2025

This rewrites all the geometry handling to no longer make Polygons the default assumption. All kinds of grids are now on equal footing. This has some pretty big ramifications for plotting, which has been revamped along the way.

This is almost 100% backwards compatible with methods that adapt the old behaviour. These can be deprecated over time.

Closes #189, closes #121, closes #187, partially implements #175.

@mx-moth mx-moth self-assigned this Dec 5, 2025
@mx-moth mx-moth force-pushed the geometry-rewrite branch 6 times, most recently from d68376d to 9f1dd79 Compare December 8, 2025 06:27
@mx-moth
Copy link
Contributor Author

mx-moth commented Dec 8, 2025

Before release I definitely need to do a proper once over of the docs and comments and what not. I suspect there are references to make_poly_collection and other things that are deprecated that will need updating. But the code works and is ready for review!

@mx-moth mx-moth force-pushed the geometry-rewrite branch 3 times, most recently from b6ebf3f to 0c98384 Compare December 11, 2025 00:38
@mx-moth mx-moth force-pushed the geometry-rewrite branch 2 times, most recently from e7df363 to fceda56 Compare December 11, 2025 01:57
It was only used in one location, and not used much at that. This is
backwards incompatible, but not for something important.
This means that users can check the geometry type before building the
geometry, which can help with resource usage in some cases.
It needed more detail than normal so I added a larger block above the
changelog
* origin/main:
  Fix mypy typing for _requires_plot()
  Fix release note PR link
I don't know why it is complaining but this seems to keep mypy happy.
@mx-moth mx-moth merged commit f20d7c9 into main Dec 15, 2025
19 of 24 checks passed
@mx-moth mx-moth deleted the geometry-rewrite branch December 15, 2025 05:44
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.

Rework triangulation function signature Support plotting more kinds of grids

1 participant

Comments