Dividing a curve by the intersection of other lines

Hi

I am trying to divide a curve by the lines intersecting with it. I read that the ‘shatter’ component might be the answer but it did not work for me. Is anyone able to point me in the right direction. Essentially, I just need to divide the curve by regular horizontal segments, which is why I set up the divided line like shown. If there is a better way, please let me know.

Warehouse Curves.gh (6.6 KB)

Thanks in advance

Warehouse Curves-b.gh (15.0 KB)

Thank you for the quick reply! I couldn’t find this component in the curve component dropdowns.