Search Results for

    Show / Hide Table of Contents

    Class EdgeIntersectionList

    A list of edge intersections along an Edge.

    Inheritance
    object
    EdgeIntersectionList
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class EdgeIntersectionList

    Constructors

    | Edit this page View Source

    EdgeIntersectionList(Edge)

    Declaration
    public EdgeIntersectionList(Edge edge)
    Parameters
    Type Name Description
    Edge edge

    Properties

    | Edit this page View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    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.

    Declaration
    public EdgeIntersection Add(Coordinate intPt, int segmentIndex, double dist)
    Parameters
    Type Name Description
    Coordinate intPt

    The point of intersection

    int segmentIndex

    The index of the containing line segment in the parent edge

    double dist

    The edge distance of this point along the containing line segment

    Returns
    Type Description
    EdgeIntersection

    The EdgeIntersection found or added.

    | Edit this page View Source

    AddEndpoints()

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

    Declaration
    public void AddEndpoints()
    | Edit this page View Source

    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).

    Declaration
    public void AddSplitEdges(IList<Edge> edgeList)
    Parameters
    Type Name Description
    IList<Edge> edgeList
    | Edit this page View Source

    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.

    Declaration
    public Edge CreateSplitEdge(EdgeIntersection ei0, EdgeIntersection ei1)
    Parameters
    Type Name Description
    EdgeIntersection ei0
    EdgeIntersection ei1
    Returns
    Type Description
    Edge
    | Edit this page View Source

    GetEnumerator()

    Returns an iterator of EdgeIntersections.

    Declaration
    public IEnumerator<EdgeIntersection> GetEnumerator()
    Returns
    Type Description
    IEnumerator<EdgeIntersection>
    | Edit this page View Source

    IsIntersection(Coordinate)

    Declaration
    public bool IsIntersection(Coordinate pt)
    Parameters
    Type Name Description
    Coordinate pt
    Returns
    Type Description
    bool
    | Edit this page View Source

    Write(StreamWriter)

    Declaration
    public void Write(StreamWriter outstream)
    Parameters
    Type Name Description
    StreamWriter outstream
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX