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
HotPixelparentEdge
ISegmentStringhotPixelVertexIndex
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
MonotoneChainA monotone chain
startIndex
intA start index