title: .NET Library to draw routed lines avoiding obstacles
body: <p>I've created a workflow/flowchart style designer for something. At the moment it is using relatively simple Bezier curve lines to connect up the various end points of the "blocks" on the workflow.</p>
  
  <p>However I would like something a bit more intuitive for the user. I want the lines to avoid obstacles like other blocks (rectangles) and possibly other lines too.</p>
  
  <p>I prefer the bezier splines rather than polylines because they are prettier and seem to fit in better with the designer in general. But am willing to compromise if they are much harder to accomplish.</p>
  
  <p>I know there is a whole load of science behind this. I've looked into things like Graphviz, Microsoft's GLEE and their commericial AGL (automatic graph layout) library.</p>
  
  <p>GLEE seems to barely be production worthy. And their commercial alternative is, well, a commercial alternative... it's quite expensive.</p>
  
  <p>Graphviz doesn't seem to have been ported to .NET in any way.</p>
  
  <p>I have seen a polyline implementation used by Windows Workflow Foundation for its "freeform designer". And this works, just, but it is not really of production grade appearance.</p>
  
  <p>I'm surprised there isn't some plug'n'play .NET library for this type of thing? Something like:</p>
  
  <p>Point[] RoutePolyline(Point begin, Point end, Rectangle[] rectObstacles, Point[] lineObstacles);</p>