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

Supersampling for smoother Voronoi diagrams #1128

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Lehonti
Copy link
Contributor

@Lehonti Lehonti commented Nov 14, 2024

As discussed here

We would be (at least temporarily) sacrificing the feature of viewing where the control points are, but I think that's fine.

For some reason, this has made the effect slow (kind of like Mandelbrot) so in the last three commits I made the effect tileable, which comes at the cost of re-computing the settings, but the user gets some live feedback. Still, I envision it improving a lot after the refactoring of the rendering mechanism is complete.

The implementation of the supersampling is 'naive' in that it doesn't take into account the large solid regions. I'd need to think how to optimize this and/or the matching of locations to the closest control point (perhaps by using an R-Tree?), but I think that's better left for a future pull request. There's only so much that can be achieved with the current tileability mechanism.

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.

1 participant