Skip to content

fix a bug in generalize for large deviations#99

Merged
stolstov merged 3 commits into
masterfrom
generalize_bug
Dec 29, 2015
Merged

fix a bug in generalize for large deviations#99
stolstov merged 3 commits into
masterfrom
generalize_bug

Conversation

@stolstov

Copy link
Copy Markdown
Member

A fix for issue #98
@FalconIA

@alocke

alocke commented Dec 21, 2015

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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

@alocke

alocke commented Dec 28, 2015

Copy link
Copy Markdown
Member

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

@stolstov

Copy link
Copy Markdown
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

alocke commented Dec 28, 2015

Copy link
Copy Markdown
Member

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.

2 participants