com.vividsolutions.jts.noding.snapround
public class MCIndexPointSnapper extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
MCIndexPointSnapper.HotPixelSnapAction |
| Modifier and Type | Field and Description |
|---|---|
static int |
nSnaps |
| Constructor and Description |
|---|
MCIndexPointSnapper(java.util.Collection monoChains,
SpatialIndex index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
snap(HotPixel hotPixel) |
boolean |
snap(HotPixel hotPixel,
SegmentString parentEdge,
int vertexIndex)
Snaps (nodes) all interacting segments to this hot pixel.
|
public MCIndexPointSnapper(java.util.Collection monoChains,
SpatialIndex index)
public boolean snap(HotPixel hotPixel, SegmentString parentEdge, int vertexIndex)
hotPixel - the hot pixel to snap toparentEdge - the edge containing the vertex, if applicable, or nullvertexIndex - the index of the vertex, if applicable, or -1true if a node was added for this pixelpublic boolean snap(HotPixel hotPixel)