Commit 3d26f0e9 authored by Matthias Betz's avatar Matthias Betz
Browse files

fixing a potential issue with 3 points near each other

parent 9430c116
Pipeline #4805 passed with stage
in 3 minutes and 13 seconds
...@@ -189,11 +189,7 @@ public class FeatureMapper extends FeatureWalker { ...@@ -189,11 +189,7 @@ public class FeatureMapper extends FeatureWalker {
if (nodesInRange.isEmpty()) { if (nodesInRange.isEmpty()) {
tree.add(v); tree.add(v);
} else { } else {
if (nodesInRange.size() != 1) { // replace other vertex with any neighboring one
throw new IllegalStateException(
"Found more than one vertex in range of " + v + " this should never happen here");
}
// replace other vertex with neighboring one
Vertex original = nodesInRange.get(0); Vertex original = nodesInRange.get(0);
lr.setVertex(i, original); lr.setVertex(i, original);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment