Here, we simulate the effect of a set of intersecting bent curves that want to straighten themselves out. The curves are divided into parts at their intersections to have overlapping Kangaroo particles. These curve segments together try to create a straight line using the bending force.
1.Find the intersection coordinates for each curve
2.Add the start and end coordinates of each curve
3.Create a sub-curve for each domain segment
4.Divide each sub-curve and merge all division points in one list per curve.