Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a bug in generalize for large deviations #99

Merged
merged 3 commits into from
Dec 29, 2015
Merged

Conversation

stolstov
Copy link
Member

A fix for issue #98
@FalconIA

@alocke
Copy link
Member

alocke commented Dec 21, 2015

With this fix if maxDeviation = 1.6 and bRemoveDegenerateParts = false, an empty polygon is returned. If maxDeviation = 1.5 and bRemoveDegenerateParts = false, the correct degenerate polygon is returned.

@stolstov
Copy link
Member Author

@alocke Could you check this install, if it fixes the issue you found?

@alocke
Copy link
Member

alocke commented Dec 28, 2015

No, it doesn't work. If maxDeviation = 1.6 and bRemoveDegenerateParts = false, an empty polygon is returned.

@stolstov
Copy link
Member Author

@alocke Strange. I've added a unit test that demonstrates that this should work. Although, it does not use the original data.

@alocke
Copy link
Member

alocke commented Dec 28, 2015

Oops, my build was messed up. Looks good.

stolstov added a commit that referenced this pull request Dec 29, 2015
fix a bug in generalize for large deviations
@stolstov stolstov merged commit cdb5d34 into master Dec 29, 2015
@stolstov stolstov deleted the generalize_bug branch December 29, 2015 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants