Poisson
Generates a random distribution of one or more elements a minimum distance apart. Optionally randomizes rotation.
How to Use
- Create a frame
- Add one or more elements to the frame (these can be shapes, component instances, or other frames)
- Select the frame
- Run the plugin
- Set a minimum distance threshold (and optionally set if rotation should be randomized)
- Press the “Create” button
How it Works
The plugin creates a new frame beside the source frame, and draws copies of the source element(s) using the poisson-disc distribution algorithm until the frame is filled. If more than one source element is used, the source element for each node is chosen randomly.
Under the Hood
The plugin uses Beau Gunderson’s poisson-disk-sampler
javascript package, which is based on Mike Bostock’s implementation of Jason Davies’ implementation of Bridson’s algorithm. View Mike Bostock’s great explanation of how poisson-disc sampling works.