algorithmic modeling for Rhino
This only works if your initial list is long enough to allow you to pick N items with at least k items in between. That is an indication that the algorithm which picks these items has to have conditional statements, which make it a more complex type of algorithm.
A simpler solution (which doesn't enforce the strict minimum-distance constraint) would be to simply pick well spaced values from the list. You can use Populate Geometry for this as a geometric shortcut:
The logic is thus:
Clever and relatively simple, but not exactly what you asked for.
Another approach would be to generate a large amount of possible pickings, then remove the ones that don't result in a valid pattern and use one of the left-over patterns to finally pick your data:
The logic here is:
--
David Rutten
david@mcneel.com
Tirol, Austria
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by