Table of Contents

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 double

The snapping tolerance distance

snapPointIndex SnappingPointIndex

A 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 MonotoneChains) 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 ISegmentString
segIndex0 int
seg1 ISegmentString
segIndex1 int