Interface ISegmentIntersector
Processes possible intersections detected by a INoder.
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public interface ISegmentIntersector
Remarks
The ISegmentIntersector is passed to a INoder.
The ProcessIntersections(ISegmentString, Int32, ISegmentString, Int32) 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
| Improve this Doc View SourceIsDone
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
Declaration
bool IsDone { get; }
Property Value
Type | Description |
---|---|
Boolean | if there is no need to continue testing segments |
Methods
| Improve this Doc View SourceProcessIntersections(ISegmentString, Int32, ISegmentString, Int32)
This method is called by clients of the ISegmentIntersector interface to process intersections for two segments of the ISegmentStrings being intersected.
Declaration
void ProcessIntersections(ISegmentString e0, int segIndex0, ISegmentString e1, int segIndex1)
Parameters
Type | Name | Description |
---|---|---|
ISegmentString | e0 | |
Int32 | segIndex0 | |
ISegmentString | e1 | |
Int32 | segIndex1 |