public static class MCIndexPointSnapper.HotPixelSnapAction extends MonotoneChainSelectAction
Constructor and Description |
---|
HotPixelSnapAction(HotPixel hotPixel,
SegmentString parentEdge,
int hotPixelVertexIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSnappedNode(HotPixel hotPixel,
NodedSegmentString segStr,
int segIndex)
Adds a new node (equal to the snap pt) to the specified segment
if the segment passes through the hot pixel
|
boolean |
isNodeAdded()
Reports whether the HotPixel caused a
node to be added in any target segmentString (including its own).
|
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.
|
select
public HotPixelSnapAction(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
public boolean isNodeAdded()
public void select(MonotoneChain mc, int startIndex)
select
in class MonotoneChainSelectAction
mc
- the parent chainstartIndex
- the index of the start vertex of the segment being processedpublic boolean addSnappedNode(HotPixel hotPixel, NodedSegmentString segStr, int segIndex)
segStr
- segIndex
- Copyright © 2022. All rights reserved.