Skip to content

Upgrade cell generation algorithm #150

@qrohlf

Description

@qrohlf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions