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

"poisson disc" "grid" #62

Open
trevorld opened this issue Sep 1, 2022 · 0 comments
Open

"poisson disc" "grid" #62

trevorld opened this issue Sep 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@trevorld
Copy link
Owner

trevorld commented Sep 1, 2022

  • Could be helpful / cool to add a "poisson disc' "grid" (on top of currently existing "square", "hex", "hex_circle", and "elongated_triangle" grids)

  • Some packages which implement such sampling:

  • Would likely need to refactor a bunch of the geometry patterns so can use pre-existing regular grids with a random grid:

    • Currently when generating grids we just compute x values and then compute y values (plus some other info) which would be insufficient knowledge since for "poisson disc" we need joint x,y values

    • When using a "pattern" to color points in the "poisson disc" "grid" how should we partition the poisson "points" to their various pattern "colors"? Two possible approaches I see:

      • coolbutuseless's {poissoned} defines a "grid" of cells where each cell (I think) has either one or zero "points" in it. Could do the pattern on same "grid" of cells. Assign "point" to "pattern" if "point" exists in "poisson disc" cell and also exists in "pattern" cell. Since some points will be "missing" may lead to distracting/charming gaps in "pattern".
      • Add points (possibly offstage and not visible) so there are nrows * ncols poisson points. We can then separately use some kind of tree on x/y values to assign "points" to "regular" cells that correspond to a nrows * ncols matrix of "pattern" cells.
  • We'll probably want to adjust "density" up so "density = 1" corresponds to no overlap (for circle shape) if the "points" are at the "minimum" possible distance

@trevorld trevorld added the enhancement New feature or request label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant