Skip to content

Commit

Permalink
Fix sorting of saddle connections in byLength() iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Jan 19, 2024
1 parent edfbc0f commit ea0dd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libflatsurf/src/saddle_connections_by_length_iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void ImplementationOf<SaddleConnectionsByLengthIterator<Surface>>::increment() {
auto withinBounds = connections.byAngle().bound(upperBoundInclusive).lowerBound(lowerBoundExclusive) | rx::to_vector();
std::sort(begin(withinBounds), end(withinBounds), typename Vector<T>::CompareLength());

std::copy(rbegin(withinBounds), rend(withinBounds), std::back_inserter(connectionsWithinBounds));
std::copy(begin(withinBounds), end(withinBounds), std::back_inserter(connectionsWithinBounds));
}
}

Expand Down

0 comments on commit ea0dd26

Please sign in to comment.