How to organize this data tree?

Hi everybody,

I need help organizing this data tree. The Data tree in question is the output of the flip matrix command i used at the bottom. There are multiple lists each having three points. I want every 3 points to form one plane and then i want each plane to give me a seperate mesh ray hit on one of these lens shaped breps.

The thing i cannot get my head around is how to organize the data tree in a way to get one plane and one mesh ray hit per lens brep while having everything still referenced to each other.

Thank you in advance for the advice and have a great day,

T. Ruben

PS: The Grasshopper script is attached and the problematic section in the script is in the yellow group

Faltwerk Entwurfsidee.gh (27.2 KB)

Found a workaround, so problem solved.

Thank you very much!