Class MCIndexPointSnapper

Hierarchy: Object , MCIndexPointSnapper
public class MCIndexPointSnapper
"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel.

Other

  • version: 1.7
public MCIndexPointSnapper(SpatialIndex index)
public boolean snap(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
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
Parameters:
hotPixel - hotPixel the hot pixel to snap to
parentEdge - parentEdge the edge containing the vertex, if applicable, or null
hotPixelVertexIndex - hotPixelVertexIndex the index of the hotPixel vertex, if applicable, or -1
Returns:
true if a node was added for this pixel
public boolean snap(HotPixel hotPixel)