Exemplo n.º 1
0
 /// <summary>
 /// Add a linestring to the graph of polygon edges.
 /// </summary>
 /// <param name="line">The <c>LineString</c> to add.</param>
 private void Add(ILineString line)
 {
     // create a new graph using the factory from the input Geometry
     if (graph == null)
     {
         graph = new PolygonizeGraph(line.Factory);
     }
     graph.AddEdge(line);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a linestring to the graph of polygon edges.
 /// </summary>
 /// <param name="line">The <c>LineString</c> to add.</param>
 private void Add(ILineString line)
 {
     // create a new graph using the factory from the input Geometry
     if (graph == null)
         graph = new PolygonizeGraph(line.Factory);
     graph.AddEdge(line);
 }