Issues with Shatter data tree management

I am having issues with shatter curves to intersect with other shattered curves while maintaining tree structure
upload shatter issue.3dm (147.6 KB)
upload shatter issue.gh (81.5 KB)