Hi,
I created 2 facades, one is created out of an extrusion in Rhino, imported as Brep, and one out of an extrusion from a square in Grasshopper. When I look at the data structure, they look similar but the order of the items in each branch is different. One is ordered horizontally, in the other one vertically. I would like to order the items inside each tree branch vertically were is horizontal at the moment.
Here are some images and the .gh file.
Data Tree Management.gh (15.3 KB)
Can someone help me, please?
Thank you so much.
Franco
Hello,
Instead of dealing with the tree structures, I chose to solve the problem at the source by flipping U and V directions of the surface. The appropriate component is in LunchBox.
I’d suggest dividing your surfaces vertically first, then graft, then divide them horizontally, then graft again. You’ll end up with a 3-level tree structure but the indices will actually mean something ( {facade;column;row}). Depends what you need to do next of course !
Data Tree Management.gh (25.0 KB)
Hi Magicteddy,
Thank you very much for the prompt response. I am actually trying to replicate the façade structure that you see in the image, the second script is the one I am trying to modify to obtain the same result of the first script. I think, the problem is in the data structure but I do not know how to modify it. When I use the Reverse Surface Direction something is not working correctly.
08_Boiler Suit Facade.gh (58.3 KB)
I appreciate your help very much.
Thank you,
Franco
The main issue was you swapped the U and V counts used for splitting the surface, and your GH definition does not seem to work with an even amount of divisions along V.
08_Boiler Suit Facade.gh (54.7 KB)
Hi,
Thank you very much. It was a simple solution. It seems that Reverse Surface Direction is not necessary anymore.
Thanks,
Franco