Exemplo n.º 1
0
 void AddEdge(PolylinePoint v)
 {
     if (visibilityKind == VisibilityKind.Regular ||
         (visibilityKind == VisibilityKind.Tangent && LineTouchesPolygon(QVertex.Point, v)))
     {
         visibilityGraph.AddEdge(QVertex.Point, v.Point, ((a, b) => new TollFreeVisibilityEdge(a, b)));
     }
 }
 private void AddVisibleEdge(Tangent t)
 {
     VisibilityGraph.AddEdge(visibilityGraph.GetVertex(t.Start), visibilityGraph.GetVertex(t.End));
 }