Class MCIndexPointSnapper
- Namespace
- NetTopologySuite.Noding.Snapround
- Assembly
- NetTopologySuite.dll
"Snaps" all ISegmentStrings in a
public class MCIndexPointSnapper
- Inheritance
-
MCIndexPointSnapper
- Inherited Members
Constructors
MCIndexPointSnapper(ISpatialIndex<MonotoneChain>)
Initializes a new instance of the MCIndexPointSnapper class.
public MCIndexPointSnapper(ISpatialIndex<MonotoneChain> index)
Parameters
index
ISpatialIndex<MonotoneChain>
Methods
Snap(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
public bool Snap(HotPixel hotPixel)
Parameters
hotPixel
HotPixelThe hot pixel to snap to.
Returns
- bool
true
if a node was added for this pixel.
Snap(HotPixel, ISegmentString, int)
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
public bool Snap(HotPixel hotPixel, ISegmentString parentEdge, int hotPixelVertexIndex)
Parameters
hotPixel
HotPixelThe hot pixel to snap to.
parentEdge
ISegmentStringThe edge containing the vertex, if applicable, or
null
.hotPixelVertexIndex
int
Returns
- bool
true
if a node was added for this pixel.