コード例 #1
0
 /// <summary>
 /// Computes all interior intersections in the collection of <see cref="ISegmentString" />s,
 /// and returns their <see cref="Coordinate" />s.
 /// Does NOT node the segStrings.
 /// </summary>
 /// <param name="segStrings"></param>
 /// <param name="li"></param>
 /// <returns>A list of <see cref="Coordinate" />s for the intersections.</returns>
 private static IList<Coordinate> FindInteriorIntersections(IList<ISegmentString> segStrings, LineIntersector li)
 {
     InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);
     SinglePassNoder noder = new MCIndexNoder(intFinderAdder);
     noder.ComputeNodes(segStrings);
     return intFinderAdder.InteriorIntersections;
 }
コード例 #2
0
        /// <summary>
        /// Computes all interior intersections in the collection of <see cref="ISegmentString" />s,
        /// and returns their <see cref="Coordinate" />s.
        /// Does NOT node the segStrings.
        /// </summary>
        /// <param name="segStrings"></param>
        /// <param name="li"></param>
        /// <returns>A list of <see cref="Coordinate" />s for the intersections.</returns>
        private static IList <Coordinate> FindInteriorIntersections(IList <ISegmentString> segStrings, LineIntersector li)
        {
            InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);
            SinglePassNoder noder = new MCIndexNoder(intFinderAdder);

            noder.ComputeNodes(segStrings);
            return(intFinderAdder.InteriorIntersections);
        }
コード例 #3
0
        /// <summary>
        /// Computes all interior intersections in the collection of <see cref="ISegmentString" />s,
        /// and returns their <see cref="Coordinate" />s.
        ///
        /// Does NOT node the segStrings.
        /// </summary>
        /// <param name="segStrings"></param>
        /// <param name="li"></param>
        /// <returns>A list of Coordinates for the intersections.</returns>
        private IList <Coordinate> FindInteriorIntersections(IList <ISegmentString> segStrings, LineIntersector li)
        {
            InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);

            _noder.SegmentIntersector = intFinderAdder;
            _noder.ComputeNodes(segStrings);
            return(intFinderAdder.InteriorIntersections);
        }
コード例 #4
0
 /// <summary>
 /// Computes all interior intersections in the collection of <see cref="ISegmentString" />s,
 /// and returns their <see cref="Coordinate" />s.
 ///
 /// Does NOT node the segStrings.
 /// </summary>
 /// <param name="segStrings"></param>
 /// <param name="li"></param>
 /// <returns>A list of Coordinates for the intersections.</returns>
 private IList<Coordinate> FindInteriorIntersections(IList<ISegmentString> segStrings, LineIntersector li)
 {
     InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);
     _noder.SegmentIntersector = intFinderAdder;
     _noder.ComputeNodes(segStrings);
     return intFinderAdder.InteriorIntersections;
 }