Open
Conversation
Author
|
With this PR , it could solve the problem in #74 : |
Member
|
Cool! Can you describe the logic in more detail here? |
Author
|
the key code is : var toRemove = false;
if (!p.steiner) {
if (equals(p, p.next) || equals(p.prev, p)) {
toRemove = true;
} else if (area(p.prev, p, p.next) === 0) {
// If `p.prev, p & p.next` are on holes (not outer edge) ,
// And `p.prev & p` are on the same hole ,
// Then do NOT remove `p` .
if (prevHole && nextHole && prevHole !== nextHole && prevHole === currentHole) {
toRemove = false;
} else {
toRemove = true;
}
}
}But there is something I can't understand about if no |
Author
|
Is there any news about this pr & issue ? |
Author
|
Is there any news about this pr & issue ??? |
Member
|
@finscn sorry, I didn't have the chance to thoroughly review it yet. It's on my list. Feel free to use your forked version in the mean time. |
|
I don't mean to add useless noise, but I'd be interested if there is a chance of this PR getting merged anytime soon. |
JaffaKetchup
added a commit
to JaffaKetchup/dart_earcut
that referenced
this pull request
Jan 31, 2024
Updated LICENSE to be in-line with Mapbox's ISC requirements
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Only
water-huge2failed .the log says :
I think maybe something is wrong in the test-case.