Search in sources :

Example 1 with InteriorIntersectionFinderAdder

use of com.revolsys.geometry.noding.InteriorIntersectionFinderAdder in project com.revolsys.open by revolsys.

the class MCIndexSnapRounder method findInteriorIntersections.

/**
 * Computes all interior intersections in the collection of {@link SegmentString}s,
 * and returns their @link Coordinate}s.
 *
 * Does NOT node the segStrings.
 *
 * @return a list of Point for the intersections
 */
private List findInteriorIntersections(final Collection segStrings, final LineIntersector li) {
    final InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);
    this.noder.setSegmentIntersector(intFinderAdder);
    this.noder.computeNodes(segStrings);
    return intFinderAdder.getInteriorIntersections();
}
Also used : InteriorIntersectionFinderAdder(com.revolsys.geometry.noding.InteriorIntersectionFinderAdder)

Example 2 with InteriorIntersectionFinderAdder

use of com.revolsys.geometry.noding.InteriorIntersectionFinderAdder in project com.revolsys.open by revolsys.

the class SimpleSnapRounder method findInteriorIntersections.

/**
 * Computes all interior intersections in the collection of {@link SegmentString}s,
 * and returns their {@link Coordinates}s.
 *
 * Does NOT node the segStrings.
 *
 * @return a list of Point for the intersections
 */
private List findInteriorIntersections(final Collection segStrings, final LineIntersector li) {
    final InteriorIntersectionFinderAdder intFinderAdder = new InteriorIntersectionFinderAdder(li);
    final SinglePassNoder noder = new MCIndexNoder();
    noder.setSegmentIntersector(intFinderAdder);
    noder.computeNodes(segStrings);
    return intFinderAdder.getInteriorIntersections();
}
Also used : SinglePassNoder(com.revolsys.geometry.noding.SinglePassNoder) MCIndexNoder(com.revolsys.geometry.noding.MCIndexNoder) InteriorIntersectionFinderAdder(com.revolsys.geometry.noding.InteriorIntersectionFinderAdder)

Aggregations

InteriorIntersectionFinderAdder (com.revolsys.geometry.noding.InteriorIntersectionFinderAdder)2 MCIndexNoder (com.revolsys.geometry.noding.MCIndexNoder)1 SinglePassNoder (com.revolsys.geometry.noding.SinglePassNoder)1