-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ear clipping method get sometimes wrong result on some concave polygon. The original isEar() method only check whether there is any point in the triangle. It will get wrong result if the triangle don't have inside point but is a concave point of the polygon. Check the triangle each time in isEar() will fix this bug.
- Loading branch information
1 parent
43b15dd
commit 3d15436
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters