public class SnappingIntersectionAdder extends Object implements SegmentIntersector
| Constructor and Description |
|---|
SnappingIntersectionAdder(double snapTolerance,
SnappingPointIndex snapPointIndex)
Creates an intersector which finds intersections, snaps them,
and adds them as nodes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Always process all intersections
|
void |
processIntersections(SegmentString seg0,
int segIndex0,
SegmentString seg1,
int segIndex1)
This method is called by clients
of the
SegmentIntersector class to process
intersections for two segments of the SegmentStrings being intersected. |
public SnappingIntersectionAdder(double snapTolerance,
SnappingPointIndex snapPointIndex)
snapTolerance - the snapping tolerance distancesnapPointIndex - the snapPointIndexpublic void processIntersections(SegmentString seg0, int segIndex0, SegmentString seg1, int segIndex1)
SegmentIntersector class to process
intersections for two segments of the SegmentStrings being intersected.
Note that some clients (such as MonotoneChains) may optimize away
this call for segment pairs which they have determined do not intersect
(e.g. by an disjoint envelope test).processIntersections in interface SegmentIntersectorpublic boolean isDone()
isDone in interface SegmentIntersectorCopyright © 2024. All rights reserved.