Grasshopper

algorithmic modeling for Rhino

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.

Views: 966

Attachments:

Replies to This Discussion

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

David,

Thank you so much,  I have been working on this little problem for quite some time hoping I could figure it out on my own.

 

The instruction have given me a real boost towards remapping data structures.

 

All the best.

 

Rich.

Incidentally, you can use [Tree Statistics] to replace both [List Length] and [Param Viewer].

--

David Rutten

david@mcneel.com

Tirol, Austria

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service