Table of Contents

Class MCIndexPointSnapper

Namespace
NetTopologySuite.Noding.Snapround
Assembly
NetTopologySuite.dll

"Snaps" all ISegmentStrings in a containing MonotoneChains to a given HotPixel.

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 HotPixel

The 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 HotPixel

The hot pixel to snap to.

parentEdge ISegmentString

The edge containing the vertex, if applicable, or null.

hotPixelVertexIndex int

Returns

bool

true if a node was added for this pixel.