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

Upgrade cell generation algorithm #150

Open
qrohlf opened this issue Jan 9, 2022 · 0 comments
Open

Upgrade cell generation algorithm #150

qrohlf opened this issue Jan 9, 2022 · 0 comments

Comments

@qrohlf
Copy link
Owner

qrohlf commented Jan 9, 2022

https://bost.ocks.org/mike/algorithms/

Bridson’s algorithm for Poisson-disc sampling solves your problem with using a square grid for initial point generation, it gives you uniform triangle size and randomized point distribution. Would probably really enhance the visual here.

You could also go with the best-candidate algorithm on the same page, which has the nice property of the numCandidates tuning parameter mapping nicely to the triangle variance param that's currently used to randomly distort the square grid.

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

No branches or pull requests

1 participant