com.vividsolutions.jts.noding.snapround
Class MCIndexPointSnapper
java.lang.Object
com.vividsolutions.jts.noding.snapround.MCIndexPointSnapper
public class MCIndexPointSnapper
extends java.lang.Object
nSnaps
public static int nSnaps
MCIndexPointSnapper
public MCIndexPointSnapper(Collection monoChains,
SpatialIndex index)
snap
public boolean snap(HotPixel hotPixel)
snap
public boolean snap(HotPixel hotPixel,
SegmentString parentEdge,
int vertexIndex)
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
hotPixel
- the hot pixel to snap toparentEdge
- the edge containing the vertex, if applicable, or null
vertexIndex
- the index of the vertex, if applicable, or -1
true
if a node was added for this pixel