"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel.
More...
#include <MCIndexPointSnapper.h>
"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel.
Definition at line 52 of file MCIndexPointSnapper.h.
geos::noding::snapround::MCIndexPointSnapper::MCIndexPointSnapper |
( |
index::SpatialIndex & |
nIndex | ) |
|
|
inline |
geos::noding::snapround::MCIndexPointSnapper::MCIndexPointSnapper |
( |
const MCIndexPointSnapper & |
other | ) |
|
|
privatedelete |
bool geos::noding::snapround::MCIndexPointSnapper::snap |
( |
HotPixel & |
hotPixel, |
|
|
SegmentString * |
parentEdge, |
|
|
size_t |
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.
- Parameters
-
hotPixel | the hot pixel to snap to |
parentEdge | the edge containing the vertex, if applicable, or null |
vertexIndex | the index of the vertex, if applicable, or -1 |
- Returns
true
if a node was added for this pixel
bool geos::noding::snapround::MCIndexPointSnapper::snap |
( |
HotPixel & |
hotPixel | ) |
|
|
inline |
constexpr double geos::noding::snapround::MCIndexPointSnapper::SAFE_ENV_EXPANSION_FACTOR = 0.75 |
|
staticprivate |
The documentation for this class was generated from the following file: