public bool Intersects(IList <ISegmentString> segStrings, SegmentIntersectionDetector intDetector) { _segSetMutInt.SegmentIntersector = intDetector; _segSetMutInt.Process(segStrings); return(intDetector.HasIntersection); }
public bool Intersects(IList <ISegmentString> segStrings) { var intFinder = new SegmentIntersectionDetector(_li); _segSetMutInt.SegmentIntersector = intFinder; _segSetMutInt.Process(segStrings); return(intFinder.HasIntersection); }
/// <summary> /// Tests for intersections with a given set of target {@link SegmentString}s. /// </summary> /// <param name="segStrings">The SegmentStrings to test</param> /// <returns><c>true</c> if an intersection was found</returns> public bool Intersects(IList <ISegmentString> segStrings) { var intFinder = new SegmentIntersectionDetector(); return(Intersects(segStrings, intFinder)); }
/// <summary> /// Tests for intersections with a given set of target <see cref="ISegmentString"/>s. /// using a given SegmentIntersectionDetector. /// </summary> /// <param name="segStrings">The SegmentStrings to test</param> /// <param name="intDetector">The intersection detector to use</param> /// <returns><c>true</c> if the detector reports intersections</returns> public bool Intersects(IList<ISegmentString> segStrings, SegmentIntersectionDetector intDetector) { _segSetMutInt.Process(segStrings, intDetector); return intDetector.HasIntersection; }
/// <summary> /// Tests for intersections with a given set of target {@link SegmentString}s. /// </summary> /// <param name="segStrings">The SegmentStrings to test</param> /// <returns><c>true</c> if an intersection was found</returns> public bool Intersects(IList<ISegmentString> segStrings) { var intFinder = new SegmentIntersectionDetector(); return Intersects(segStrings, intFinder); }
private void ComputeIntersection(LineTopology lineTopo) { SegmentIntersectionDetector intDetector = new SegmentIntersectionDetector(li); intDetector.FindAllIntersectionTypes = true; // prepPoly.getIntersectionFinder().intersects(lineSegStr, intDetector); }
private void FindAndClassifyIntersections(IGeometry geom) { IList<ISegmentString> lineSegStr = SegmentStringUtil.ExtractSegmentStrings(geom); var intDetector = new SegmentIntersectionDetector(); intDetector.FindAllIntersectionTypes = true; prepPoly.IntersectionFinder.Intersects(lineSegStr, intDetector); _hasSegmentIntersection = intDetector.HasIntersection; _hasProperIntersection = intDetector.HasProperIntersection; _hasNonProperIntersection = intDetector.HasNonProperIntersection; }