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

planar polygon clipping #25

Closed
Fil opened this issue Feb 28, 2019 · 2 comments
Closed

planar polygon clipping #25

Fil opened this issue Feb 28, 2019 · 2 comments

Comments

@Fil
Copy link
Member

Fil commented Feb 28, 2019

The Imago projection needs to use polygon clipping; but it seems a bit absurd that we are doing spherical clipping (with 200 control points computed as the inverse of 200 planar points) just to do what is in the end a simple rectangular clipping. The thing is tricky because, so close to the limit, the spherical interpolation between control points might jump from one side to the other.

@Fil
Copy link
Member Author

Fil commented Jul 10, 2020

See d3/d3-polygon#4

@Fil
Copy link
Member Author

Fil commented Jun 23, 2024

The best library (as of today and as far as I know) is https://github.com/mfogel/polygon-clipping; see https://observablehq.com/@fil/hello-polygon-clipping.

@Fil Fil closed this as completed Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant