/// <summary> /// Adds a to the graph of polygon edges. /// </summary> /// <param name="line">The <see cref="ILineString"/> 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); }
/// <summary> /// Adds a to the graph of polygon edges. /// </summary> /// <param name="line">The <see cref="ILineString"/> to add.</param> private void Add(ILineString line) { // record the geometry factory for later use _geomFactory = line.Factory; // create a new graph using the factory from the input Geometry if (_graph == null) _graph = new PolygonizeGraph(line.Factory); _graph.AddEdge(line); }