Class MCIndexPointSnapper.HotPixelSnapAction

Hierarchy: Object , MonotoneChainSelectAction, MCIndexPointSnapper.HotPixelSnapAction
public static class MCIndexPointSnapper.HotPixelSnapAction
extends MonotoneChainSelectAction
public HotPixelSnapAction(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
public boolean isNodeAdded()
Reports whether the HotPixel caused a node to be added in any target segmentString (including its own). If so, the HotPixel must be added as a node as well.
Returns:
true if a node was added in any target segmentString.
public void select(MonotoneChain mc, int startIndex)
Check if a segment of the monotone chain intersects the hot pixel vertex and introduce a snap node if so. Optimized to avoid noding segments which contain the vertex (which otherwise would cause every vertex to be noded).