Grasshopper

algorithmic modeling for Rhino

NESTING : partition a list / there are a lot of little lists of number which are sorted in ascending order

I'd like to partition a list.

I have a serie of surfaces I'd like to store in a rectangle.

The pieces are sorted in ascending order and I have made a modulus with the x dimension of my rectangle, but I'd like to partition the list I obtain after the modulus :

I need grasshopper to see how much pieces can enter in the x longer of my rectangle:

take a look at the screenshot

Any idea ?

Views: 483

Replies to This Discussion

oh my god, thank you a hundred times Tom !
thanks thanks thanks !

your little script is exactly what I was looking for :)

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service