Class SnappingIntersectionAdder
Finds intersections between line segments which are being snapped, and adds them as nodes.
Implements
Inherited Members
Namespace: NetTopologySuite.Noding.Snap
Assembly: NetTopologySuite.dll
Syntax
public sealed class SnappingIntersectionAdder : ISegmentIntersector
Constructors
| Edit this page View SourceSnappingIntersectionAdder(double, SnappingPointIndex)
Creates an intersector which finds all snapped intersections, and adds them as nodes.
Declaration
public SnappingIntersectionAdder(double snapTolerance, SnappingPointIndex snapPointIndex)
Parameters
Type | Name | Description |
---|---|---|
double | snapTolerance | The snapping tolerance distance |
SnappingPointIndex | snapPointIndex | A snap index to use |
SnappingIntersectionAdder(double, SnappingPointIndex, ElevationModel)
Creates an intersector which finds all snapped intersections, and adds them as nodes.
Declaration
public SnappingIntersectionAdder(double snapTolerance, SnappingPointIndex snapPointIndex, ElevationModel em)
Parameters
Type | Name | Description |
---|---|---|
double | snapTolerance | The snapping tolerance distance |
SnappingPointIndex | snapPointIndex | A snap index to use |
ElevationModel | em | An elevation model. May be |
Properties
| Edit this page View SourceIsDone
Reports whether the client of this class needs to continue testing all intersections in an arrangement.
Declaration
public bool IsDone { get; }
Property Value
Type | Description |
---|---|
bool | if there is no need to continue testing segments |
Remarks
Always process all intersections
Methods
| Edit this page View SourceProcessIntersections(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).
Declaration
public void ProcessIntersections(ISegmentString seg0, int segIndex0, ISegmentString seg1, int segIndex1)
Parameters
Type | Name | Description |
---|---|---|
ISegmentString | seg0 | |
int | segIndex0 | |
ISegmentString | seg1 | |
int | segIndex1 |