Search Results for

    Show / Hide Table of Contents

    Class SegmentIntersector

    Computes the intersection of line segments, and adds the intersection to the edges containing the segments.

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

    Constructors

    | Edit this page View Source

    SegmentIntersector(LineIntersector, bool, bool)

    Declaration
    public SegmentIntersector(LineIntersector li, bool includeProper, bool recordIsolated)
    Parameters
    Type Name Description
    LineIntersector li
    bool includeProper
    bool recordIsolated

    Fields

    | Edit this page View Source

    NumTests

    Testing only.

    Declaration
    public int NumTests
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    HasIntersection

    Declaration
    public bool HasIntersection { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    HasProperInteriorIntersection

    A proper interior intersection is a proper intersection which is not contained in the set of boundary nodes set for this SegmentIntersector.

    Declaration
    public bool HasProperInteriorIntersection { get; }
    Property Value
    Type Description
    bool

    Indicates a proper interior intersection

    | Edit this page View Source

    HasProperIntersection

    A proper intersection is an intersection which is interior to at least two line segments. Note that a proper intersection is not necessarily in the interior of the entire Geometry, since another edge may have an endpoint equal to the intersection, which according to SFS semantics can result in the point being on the Boundary of the Geometry.

    Declaration
    public bool HasProperIntersection { get; }
    Property Value
    Type Description
    bool

    Indicates a proper intersection with an interior to at least two line segments

    | Edit this page View Source

    IsDone

    Gets a value indicating that the segment intersector is finished.

    Declaration
    public bool IsDone { get; }
    Property Value
    Type Description
    bool
    Remarks

    Always returns false

    | Edit this page View Source

    IsDoneIfProperInt

    Sets a flag if the segment intersector is done when a proper intersection has been found.

    Declaration
    [Obsolete("Not used anymore, will be removed in a later version")]
    public bool IsDoneIfProperInt { set; }
    Property Value
    Type Description
    bool
    Remarks

    Has no effect anymore.

    | Edit this page View Source

    ProperIntersectionPoint

    Declaration
    public Coordinate ProperIntersectionPoint { get; }
    Property Value
    Type Description
    Coordinate

    The proper intersection point, or null if none was found.

    Methods

    | Edit this page View Source

    AddIntersections(Edge, int, Edge, int)

    This method is called by clients of the EdgeIntersector class to test for and add intersections for two segments of the edges being intersected. Note that clients (such as MonotoneChainEdges) may choose not to intersect certain pairs of segments for efficiency reasons.

    Declaration
    public void AddIntersections(Edge e0, int segIndex0, Edge e1, int segIndex1)
    Parameters
    Type Name Description
    Edge e0
    int segIndex0
    Edge e1
    int segIndex1
    | Edit this page View Source

    IsAdjacentSegments(int, int)

    Declaration
    public static bool IsAdjacentSegments(int i1, int i2)
    Parameters
    Type Name Description
    int i1
    int i2
    Returns
    Type Description
    bool
    | Edit this page View Source

    SetBoundaryNodes(IList<Node>, IList<Node>)

    Declaration
    public void SetBoundaryNodes(IList<Node> bdyNodes0, IList<Node> bdyNodes1)
    Parameters
    Type Name Description
    IList<Node> bdyNodes0
    IList<Node> bdyNodes1
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX