algorithmic modeling for Rhino
Sure. What you do is you break the grid into lines using "Deconstruct Brep", then counting how many edges there are.
Then you can use "larger than" and input 4, so you get a true value for all that have more than 4 edges.
Then you use Dispatch to split the original list of hexagons using the true and false values of the largen than component.
This is a very common pattern in GH that you will use a lot. Checking something and using the results of the check to differentiate something else.
If you have a .gh file you can upload it here and I will show you how to do it with your specific example.
I freakin love you man. It worked. Thanks so much !
I'm glad I could help. Happy Grasshopping!
Hi Armin,
it sounds simple but I can't get this to work. Can you send the definition?
Would be great!
Frank T
It's maybe because I'm dealing with non planar hexagones created by paneling tools.
Hi Frank,
well, the answer was more to do with how you can seperate something into 2 distinct lists, then do different operations on each. All you need for that is basically the Dispatch component and something you are checking, which gives you a true/false value.
I am not sure of your specific problem. You should post your .gh file, then its much easier to see what's going on. Maybe its due to data tree structure that things are slightly different.
I can't manage to isolate the value that indicates the number of edges...
Okay, I had to try a few things before I got it to work. Number of curves per cell didn't work, area didn't work and length also didn't work. But finally the number of vertices (points) in each cell is distinct enough in the incomplete hexagons.
So just explode the curves, count vertices and then use dispatch to split into 2 lists.
Hi Armin, thanks for your help! I had posted the question in a separate discussion and got a solution based on list length that seems efficient:
http://www.grasshopper3d.com/forum/topics/filtering-poly-lines-base...
Thanks again, Frank T
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
© 2024 Created by Scott Davidson. Powered by