Cull Pattern C#, removing items by pattern

Hi, I am trying to create a code working the same as “CullPattern” component in grasshopper C#. It has to be included inside the c# code. I have list of curves and bool values on list(image attached). I have no idea how can I remove Curves from Curves List based on bool pattern values from Bool List.


CullPattern.gh (33.2 KB)

Hi,like this?
CullPattern_modify.gh (46.2 KB)

1 Like

Yes, exactly, thank you, much easier, than I thought.

1 Like