Skip to content

Commit

Permalink
Fixed issue-16
Browse files Browse the repository at this point in the history
Fixes delfrrr#16 to prevent infinite recursion when a triangle was previously deleted from hull_next.

Port of fix in original JavaScript mapbox/delaunator#44
  • Loading branch information
esilvia authored Nov 4, 2020
1 parent c1521f6 commit c928fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/delaunator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ std::size_t Delaunator::legalize(std::size_t a) {
hull_tri[e] = a;
break;
}
e = hull_next[e];
e = hull_prev[e];
} while (e != hull_start);
}
link(a, hbl);
Expand Down

0 comments on commit c928fc1

Please sign in to comment.