Class MCIndexPointSnapper
"Snaps" all ISegmentStrings in a ISpatialIndex<T> containing MonotoneChains to a given HotPixel.
Inherited Members
Namespace: NetTopologySuite.Noding.Snapround
Assembly: NetTopologySuite.dll
Syntax
public class MCIndexPointSnapper
Constructors
| Improve this Doc View SourceMCIndexPointSnapper(ISpatialIndex<MonotoneChain>)
Initializes a new instance of the MCIndexPointSnapper class.
Declaration
public MCIndexPointSnapper(ISpatialIndex<MonotoneChain> index)
Parameters
Type | Name | Description |
---|---|---|
ISpatialIndex<MonotoneChain> | index |
Methods
| Improve this Doc View SourceSnap(HotPixel)
Snaps (nodes) all interacting segments to this hot pixel. The hot pixel may represent a vertex of an edge, in which case this routine uses the optimization of not noding the vertex itself
Declaration
public bool Snap(HotPixel hotPixel)
Parameters
Type | Name | Description |
---|---|---|
HotPixel | hotPixel | The hot pixel to snap to. |
Returns
Type | Description |
---|---|
Boolean |
|
Snap(HotPixel, ISegmentString, Int32)
Snaps (nodes) all interacting segments to this hot pixel. The hot pixel may represent a vertex of an edge, in which case this routine uses the optimization of not noding the vertex itself
Declaration
public bool Snap(HotPixel hotPixel, ISegmentString parentEdge, int hotPixelVertexIndex)
Parameters
Type | Name | Description |
---|---|---|
HotPixel | hotPixel | The hot pixel to snap to. |
ISegmentString | parentEdge | The edge containing the vertex, if applicable, or |
Int32 | hotPixelVertexIndex |
Returns
Type | Description |
---|---|
Boolean |
|