Interface ISegmentIntersector
- Namespace
- NetTopologySuite.Noding
- Assembly
- NetTopologySuite.dll
Processes possible intersections detected by a INoder.
public interface ISegmentIntersector
Remarks
The ISegmentIntersector is passed to a INoder.
The ProcessIntersections(ISegmentString, int, ISegmentString, int) method is called whenever the INoder detects that two ISegmentStrings might intersect.This class may be used either to find all intersections, or to detect the presence of an intersection. In the latter case, Noders may choose to short-circuit their computation by calling the IsDone property.
This class is an example of the Strategy pattern.
This class may be used either to find all intersections, or to detect the presence of an intersection. In the latter case, Noders may choose to short-circuit their computation by calling the IsDone property.
Properties
IsDone
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
bool IsDone { get; }
Property Value
- bool
if there is no need to continue testing segments
Methods
ProcessIntersections(ISegmentString, int, ISegmentString, int)
This method is called by clients of the ISegmentIntersector interface to process intersections for two segments of the ISegmentStrings being intersected.
void ProcessIntersections(ISegmentString e0, int segIndex0, ISegmentString e1, int segIndex1)
Parameters
e0
ISegmentStringsegIndex0
inte1
ISegmentStringsegIndex1
int