algorithmic modeling for Rhino
I'm in trouble because I don't know how to divide large amount of object in the same way as the numeric data list.
I have a numeric list like A and large amount of objects like B.
In the list A, the numbers from 1 to 7775 is rearranged and divided into 1943 branches, each branches contain 4 numbers.
Now, I have many quadrangle objects, which is listed and put numbers like B and contained in single branch.
I'd like to divide these quadrangle objects into the same way as the numeric data list A.
For example, I want to put the quadrangle which is listed in 5236th into the 1896th branch, 5290th into the 1896th one, 5452th into the 1897th one.
If you know the way to do, would you show me?
A
Tags:
Use the list item component, feeding your quadrangle into the "L" input (make sure the data is flattened - you can select that in your input option - and correctly ordered from 1 to 7775) and your rearranged branch list (as seen in your first image) into the "i" input. If your list is numbered starting at 1, though, you're going to want to reduce each number by 1, so that your list input goes from 0 to 7774 instead of 1 to 7775...list indices start at 0. But if your quadrangles are arranged in order this should output them to the correct branch.
I appreciate you helping me.
The solution was easier than I had expected.
My task is getting solved, thank you very much.
Best regards.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by