Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I was wondering how can I create a list of sub-lists like this screenshot? thx.

Views: 1806

Reply to This

Replies to This Discussion

I wrote a script to get the size of partitions but, unfortunately it didn't work.

The size of the list of your [Partition List] component is:

1, 3, 5, 1, 4, ...

What's the logic of that list?

True, the logic comes from relative differences between sorted list values.

This is a solution for a similar problem I had once. Not exactly what you want and also in times before PartitionList, but you might be able to adapt. 

Attachments:

Thank you phillip, nice! so how can I reach to the values in each domain?

Use the Successive Difference component.

You are right, Chris. Successive Difference and Partition List are the best components here. But I think this is more what Behnood is after:

Two comments though:

- Would be nice if [Member Index] would accept the String right away

- How about a Partition by Index component?

Attachments:

Bingo! :) Thank you so much phillip! That's what I'm talking about. :) Cheers!

Did I get it this time or am I still missing something?

Comparing each 2 values or numbers together. Expected output for this one is: {0}:1,2 ; {1}: 5,6 ; {2}: 9 ; {3}: 12,13 ; {4}: 15,16 ...

I get it. Thanks for explaining.

Thank you Chris, I tried it, but something was missing. I want to group some random sorted data just like the screenshot I uploaded above.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service