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

Use a more robust triangle test #2037

Merged
merged 1 commit into from Mar 27, 2024
Merged

Use a more robust triangle test #2037

merged 1 commit into from Mar 27, 2024

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Mar 26, 2024

fix #2035

A curious consequence of this change on the penguins-barycentric image: since a few pixels have become valid, the sequence of pseudo-random numbers that determines the color of each pixel in the mix is called on less elements, which shifts the pattern of pixels to the right. I triple-checked that this is not a bug: the densities (viewed by blurring) are correct.

shift.mp4

cc: @jheer

@Fil Fil requested a review from mbostock March 26, 2024 13:30
@Fil Fil merged commit e5fb68d into main Mar 27, 2024
1 check passed
@Fil Fil deleted the fil/barycentric-precision branch March 27, 2024 19:32
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.

Barycentric interpolator leaves some raster cells uninterpolated
2 participants