GEOS  3.13.0dev
Public Member Functions | List of all members
geos::noding::snapround::MCIndexPointSnapper Class Reference

"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel. More...

#include <MCIndexPointSnapper.h>

Public Member Functions

 MCIndexPointSnapper (index::SpatialIndex &nIndex)
 
bool snap (HotPixel &hotPixel, SegmentString *parentEdge, std::size_t vertexIndex)
 Snaps (nodes) all interacting segments to this hot pixel. More...
 
bool snap (HotPixel &hotPixel)
 
geom::Envelope getSafeEnvelope (const HotPixel &hp) const
 

Detailed Description

"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel.

Member Function Documentation

◆ snap()

bool geos::noding::snapround::MCIndexPointSnapper::snap ( HotPixel hotPixel,
SegmentString parentEdge,
std::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
hotPixelthe hot pixel to snap to
parentEdgethe edge containing the vertex, if applicable, or null
vertexIndexthe index of the vertex, if applicable, or -1
Returns
true if a node was added for this pixel

The documentation for this class was generated from the following file: