Surface Identification based on Layer Attributes

Hi everyone. I have two types of data structures. In the first one, we have two main branches corresponding to Surface 0 and Surface 1. Each branch contains several surfaces (X) organized into their respective layers. On the other hand, I have a second structure also with two branches (0 and 1) containing sets of surfaces (X) that coincide with the first structure.

My initial goal was to link the surfaces from the second structure that are contained within surfaces X, which was solved in a previous post thanks to @inno help Tree issue - #12 by JohnFrost . However, I now need surfaces J and L to be treated as belonging to a same structure.

The only way I can think of achieving this is by using layer membership, since the surfaces forming ‘0’ and ‘1’ are in their specific layers, but I can’t figure out how to implement this filtering logic. Could you please help me with this?"

Forum10_V3.gh (24.9 KB)

Forum10_v3.3dm (856.9 KB)

Hie,

I have been trying to simplify the process as much as possible. On one hand, I have the ‘large’ surfaces with an index based on their layer. I linked them to the ‘small’ surfaces using a Pull Point routine to identify which large surface they belong to and assign them its corresponding layer index. However, I’m doing something wrong with the data structures. Could you please help me?

Regards

Forum10_v4.3dm (837.2 KB)

Forum10_V4.gh (13.7 KB)

I think you should try the Grasshopper Rhino components instead of using Elefront

Forum10_V4_rhinogh.gh (19.7 KB)

2 Likes

Solved! @MartinSiegrist @Inno Thank you so much for your help.

Regards

1 Like