Package org.locationtech.jts.noding
Class InteriorIntersectionFinderAdder
java.lang.Object
org.locationtech.jts.noding.InteriorIntersectionFinderAdder
- All Implemented Interfaces:
SegmentIntersector
Finds interior intersections between line segments in
NodedSegmentString
s,
and adds them as nodes
using NodedSegmentString.addIntersection(LineIntersector, int, int, int)
.
This class is used primarily for Snap-Rounding.
For general-purpose noding, use IntersectionAdder
.
- Version:
- 1.7
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an intersection finder which finds all proper intersections -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDone()
Always process all intersectionsvoid
processIntersections
(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1) This method is called by clients of theSegmentIntersector
class to process intersections for two segments of theSegmentString
s being intersected.
-
Field Details
-
li
-
interiorIntersections
-
-
Constructor Details
-
InteriorIntersectionFinderAdder
Creates an intersection finder which finds all proper intersections- Parameters:
li
- the LineIntersector to use
-
-
Method Details
-
getInteriorIntersections
-
processIntersections
This method is called by clients of theSegmentIntersector
class to process intersections for two segments of theSegmentString
s being intersected. Note that some clients (such asMonotoneChain
s) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test).- Specified by:
processIntersections
in interfaceSegmentIntersector
-
isDone
public boolean isDone()Always process all intersections- Specified by:
isDone
in interfaceSegmentIntersector
- Returns:
- false always
-