Search Results for

    Show / Hide Table of Contents

    Class FastSegmentSetIntersectionFinder

    Finds if two sets of ISegmentStrings intersect.

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

    Uses indexing for fast performance and to optimize repeated tests against a target set of lines. Short-circuited to return as soon an intersection is found.

    Immutable and thread-safe.

    Constructors

    | Edit this page View Source

    FastSegmentSetIntersectionFinder(IEnumerable<ISegmentString>)

    Creates an intersection finder against a given set of segment strings.

    Declaration
    public FastSegmentSetIntersectionFinder(IEnumerable<ISegmentString> baseSegStrings)
    Parameters
    Type Name Description
    IEnumerable<ISegmentString> baseSegStrings

    The segment strings to search for intersections

    | Edit this page View Source

    FastSegmentSetIntersectionFinder(IEnumerable<ISegmentString>, ElevationModel)

    Creates an intersection finder against a given set of segment strings.

    Declaration
    public FastSegmentSetIntersectionFinder(IEnumerable<ISegmentString> baseSegStrings, ElevationModel em)
    Parameters
    Type Name Description
    IEnumerable<ISegmentString> baseSegStrings

    The segment strings to search for intersections

    ElevationModel em

    An elevation model, may be null

    Properties

    | Edit this page View Source

    SegmentSetIntersector

    Gets the segment set intersector used by this class.

    Declaration
    public ISegmentSetMutualIntersector SegmentSetIntersector { get; }
    Property Value
    Type Description
    ISegmentSetMutualIntersector
    Remarks

    This allows other uses of the same underlying indexed structure.

    Methods

    | Edit this page View Source

    Intersects(IList<ISegmentString>)

    Tests for intersections with a given set of target ISegmentStrings.

    Declaration
    public bool Intersects(IList<ISegmentString> segStrings)
    Parameters
    Type Name Description
    IList<ISegmentString> segStrings

    The SegmentStrings to test

    Returns
    Type Description
    bool

    true if an intersection was found

    | Edit this page View Source

    Intersects(IList<ISegmentString>, SegmentIntersectionDetector)

    Tests for intersections with a given set of target ISegmentStrings. using a given SegmentIntersectionDetector.

    Declaration
    public bool Intersects(IList<ISegmentString> segStrings, SegmentIntersectionDetector intDetector)
    Parameters
    Type Name Description
    IList<ISegmentString> segStrings

    The SegmentStrings to test

    SegmentIntersectionDetector intDetector

    The intersection detector to use

    Returns
    Type Description
    bool

    true if the detector reports intersections

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX