Skip to content

Commit a6fb8dd

Browse files
committed
Eliminate infinite loop.
Close #4
1 parent a4697e7 commit a6fb8dd

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)