Table of Contents

Class MCIndexPointSnapper.HotPixelSnapAction

Namespace
NetTopologySuite.Noding.Snapround
Assembly
NetTopologySuite.dll
public class MCIndexPointSnapper.HotPixelSnapAction : MonotoneChainSelectAction
Inheritance
MCIndexPointSnapper.HotPixelSnapAction
Inherited Members

Constructors

HotPixelSnapAction(HotPixel, ISegmentString, int)

Initializes a new instance of the MCIndexPointSnapper.HotPixelSnapAction class.

public HotPixelSnapAction(HotPixel hotPixel, ISegmentString parentEdge, int hotPixelVertexIndex)

Parameters

hotPixel HotPixel
parentEdge ISegmentString
hotPixelVertexIndex int

Properties

IsNodeAdded

Reports whether the HotPixel caused a node to be added in any target segmentString(including its own). If so, the HotPixel must be added as a node as well.

public bool IsNodeAdded { get; }

Property Value

bool

true if a node was added in any target segmentString.

Methods

Select(MonotoneChain, int)

Check if a segment of the monotone chain intersects the hot pixel vertex and introduce a snap node if so. Optimized to avoid noding segments which contain the vertex (which otherwise would cause every vertex to be noded).

public override void Select(MonotoneChain mc, int startIndex)

Parameters

mc MonotoneChain

A monotone chain

startIndex int

A start index