Class SnappingIntersectionAdder
- Namespace
- NetTopologySuite.Noding.Snap
- Assembly
- NetTopologySuite.dll
Finds intersections between line segments which are being snapped, and adds them as nodes.
public sealed class SnappingIntersectionAdder : ISegmentIntersector
- Inheritance
-
SnappingIntersectionAdder
- Implements
- Inherited Members
Constructors
SnappingIntersectionAdder(double, SnappingPointIndex)
Creates an intersector which finds all snapped intersections, and adds them as nodes.
public SnappingIntersectionAdder(double snapTolerance, SnappingPointIndex snapPointIndex)
Parameters
snapTolerance
doubleThe snapping tolerance distance
snapPointIndex
SnappingPointIndexA snap index to use
Properties
IsDone
public bool IsDone { get; }
Property Value
- bool
false
Remarks
Always process all intersections
Methods
ProcessIntersections(ISegmentString, int, ISegmentString, int)
This method is called by clients
of the ISegmentIntersector class to process
intersections for two segments of the ISegmentStrings being intersected.
Note that some clients (such as MonotoneChain
s) may optimize away
this call for segment pairs which they have determined do not intersect
(e.g. by an disjoint envelope test).
public void ProcessIntersections(ISegmentString seg0, int segIndex0, ISegmentString seg1, int segIndex1)
Parameters
seg0
ISegmentStringsegIndex0
intseg1
ISegmentStringsegIndex1
int