title: Algorithm to find intersections between polylines
body: <p>Bentley-Ottmann algorithm works for finding intersections of set of straight lines. But I have lot of polylines:</p>
  
  <p><img src="https://i.stack.imgur.com/8sGCs.png" alt="enter image description here"></p>
  
  <p>Is there a way to find intersections of the set of polylines?</p>
  
  <p>I'm figuring out, but in the meanwhile, if someone can give some pointers or ideas, that would be helpful. Thanks for reading. By the way, I'm using WPF/C# and all the polylines are PathGeometry.</p>
  
  <p>Source of the Image: <a href="http://www.sitepen.com/blog/wp-content/uploads/2007/07/gfx-curve-1.png" rel="noreferrer">http://www.sitepen.com/blog/wp-content/uploads/2007/07/gfx-curve-1.png</a></p>