Table of Contents

Class EdgeIntersectionList

Namespace
NetTopologySuite.GeometriesGraph
Assembly
NetTopologySuite.dll

A list of edge intersections along an Edge.

public class EdgeIntersectionList
Inheritance
EdgeIntersectionList
Inherited Members

Constructors

EdgeIntersectionList(Edge)

public EdgeIntersectionList(Edge edge)

Parameters

edge Edge

Properties

Count

public int Count { get; }

Property Value

int

Methods

Add(Coordinate, int, double)

Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.

public EdgeIntersection Add(Coordinate intPt, int segmentIndex, double dist)

Parameters

intPt Coordinate

The point of intersection

segmentIndex int

The index of the containing line segment in the parent edge

dist double

The edge distance of this point along the containing line segment

Returns

EdgeIntersection

The EdgeIntersection found or added.

AddEndpoints()

Adds entries for the first and last points of the edge to the list.

public void AddEndpoints()

AddSplitEdges(IList<Edge>)

Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the input list (this is so a single list can be used to accumulate all split edges for a Geometry).

public void AddSplitEdges(IList<Edge> edgeList)

Parameters

edgeList IList<Edge>

CreateSplitEdge(EdgeIntersection, EdgeIntersection)

Create a new "split edge" with the section of points between (and including) the two intersections. The label for the new edge is the same as the label for the parent edge.

public Edge CreateSplitEdge(EdgeIntersection ei0, EdgeIntersection ei1)

Parameters

ei0 EdgeIntersection
ei1 EdgeIntersection

Returns

Edge

GetEnumerator()

Returns an iterator of EdgeIntersections.

public IEnumerator<EdgeIntersection> GetEnumerator()

Returns

IEnumerator<EdgeIntersection>

IsIntersection(Coordinate)

public bool IsIntersection(Coordinate pt)

Parameters

pt Coordinate

Returns

bool

Write(StreamWriter)

public void Write(StreamWriter outstream)

Parameters

outstream StreamWriter