Improves TopologyPreservingSimplifier to avoid collapsing edge-disjoint lines together when tolerance is large.
The old code would not maintain the topology of sets of edges-disjoint lines which were closer than the simplification tolerance. In the following example a set of edge-disjoint lines collapse together with a tolerance of 150:
Improves
TopologyPreservingSimplifier
to avoid collapsing edge-disjoint lines together when tolerance is large.The old code would not maintain the topology of sets of edges-disjoint lines which were closer than the simplification tolerance. In the following example a set of edge-disjoint lines collapse together with a tolerance of 150:
With the improved code the lines are simplified as much as possible while being kept edge-disjoint:
Note: there is a still an issue which allows fully-disjoint edges to "cross over" each other.