GEOS 3.11.1
|
#include <SnapRoundingIntersectionAdder.h>
Public Member Functions | |
SnapRoundingIntersectionAdder (double p_nearnessTol) | |
std::unique_ptr< std::vector< geom::Coordinate > > | getIntersections () |
void | processIntersections (SegmentString *e0, std::size_t segIndex0, SegmentString *e1, std::size_t segIndex1) override |
bool | isDone () const override |
virtual void | processIntersections (SegmentString *e0, std::size_t segIndex0, SegmentString *e1, std::size_t segIndex1)=0 |
virtual bool | isDone () const |
Reports whether the client of this class needs to continue testing all intersections in an arrangement. More... | |
Finds intersections between line segments which will be snap-rounded, and adds them as nodes to the segments.
Intersections are detected and computed using full precision. Snapping takes place in a subsequent phase.
The intersection points are recorded, so that HotPixels can be created for them.
To avoid robustness issues with vertices which lie very close to line segments a heuristic is used: nodes are created if a vertex lies within a tolerance distance of the interior of a segment. The tolerance distance is chosen to be significantly below the snap-rounding grid size. This has empirically proven to eliminate noding failures.
|
inlineoverridevirtual |
Always process all intersections
Reimplemented from geos::noding::SegmentIntersector.
|
overridevirtual |
This method is called by clients of the SegmentIntersector
class to process intersections for two segments of the SegmentString
s being intersected. Note that some clients (such as MonotoneChains) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test).
Implements geos::noding::SegmentIntersector.