Skip to content

Commit eaaf176

Browse files
authored
Merge pull request #5 from abellgithub/issue-4
Eliminate infinite loop.
2 parents a4697e7 + a6fb8dd commit eaaf176

File tree

2 files changed

+269
-1
lines changed

2 files changed

+269
-1
lines changed

include/delaunator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ std::size_t Delaunator::legalize(std::size_t a) {
484484
hull_tri[e] = a;
485485
break;
486486
}
487-
e = hull_next[e];
487+
e = hull_prev[e];
488488
} while (e != hull_start);
489489
}
490490
link(a, hbl);

0 commit comments

Comments
 (0)