Remapping data

Hi,

Its been a while since my last post, thought I had grasshopper nailed.

 

I'm essentially trying to fill a box with as many none intersecting circles using a 2D random point generator.

 

I would like to generate 100's of seeds at the same time and let grasshopper tell me which seed has the least interactions.

 

I have managed to generate all geometry and can sort the list however i'm having trouble getting the circles back.

 

Attached is a screen shot showing the logic i'm using

 

Any help would be awesome.

 

Thanks

 

Rich.

  • up

    David Rutten

    I'm not going to duplicate your file so this will be a textual instruction:

    1. Flatten the output of the [List Length] component
    2. Sort the list length output using regular [Sort] (not text sort) and sort all the paths synchronously.
    3. Use [List Item] with index zero to extract the first path from the sorted list.
    4. Use this path to select all the circles using [Tree Branch] on your original data tree containing circles.

    --

    David Rutten

    david@mcneel.com

    Tirol, Austria

    2