Skip to content

Commit

Permalink
* fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruman Gerst committed Aug 21, 2024
1 parent e0d790f commit ca1b078
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ protected void runIteration(JIPipeSingleIterationStep iterationStep, JIPipeItera
}
} else if (connectedSet.size() >= 2) {
List<FilamentVertex> endPoints = connectedSet.stream().filter(vertex -> filaments.degreeOf(vertex) == 1).collect(Collectors.toList());
assert endPoints.size() == 2;

if(endPoints.size() != 2) {
// Not a line
continue;
}

FilamentVertex first = endPoints.get(0);
FilamentVertex second = endPoints.get(1);
Expand Down

0 comments on commit ca1b078

Please sign in to comment.