Class MCIndexPointSnapper.HotPixelSnapAction
Inherited Members
Namespace: NetTopologySuite.Noding.Snapround
Assembly: NetTopologySuite.dll
Syntax
public class HotPixelSnapAction : MonotoneChainSelectAction
Constructors
| Improve this Doc View SourceHotPixelSnapAction(HotPixel, ISegmentString, Int32)
Initializes a new instance of the MCIndexPointSnapper.HotPixelSnapAction class.
Declaration
public HotPixelSnapAction(HotPixel hotPixel, ISegmentString parentEdge, int hotPixelVertexIndex)
Parameters
Type | Name | Description |
---|---|---|
HotPixel | hotPixel | |
ISegmentString | parentEdge | |
Int32 | hotPixelVertexIndex |
Properties
| Improve this Doc View SourceIsNodeAdded
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.
Declaration
public bool IsNodeAdded { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
| Improve this Doc View SourceSelect(MonotoneChain, Int32)
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).
Declaration
public override void Select(MonotoneChain mc, int startIndex)
Parameters
Type | Name | Description |
---|---|---|
MonotoneChain | mc | A monotone chain |
Int32 | startIndex | A start index |