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

proposed fix for #744 #801

Closed
wants to merge 1 commit into from
Closed

Conversation

sanderboer
Copy link
Contributor

Issue with #744 is that some programs export full circles as trimmed circles, with trimparams at 0 and 2*pi. But due to floating point precision this trim could flip from full circle to an infinitesimally small line segment.

@berndhahnebach
Copy link
Contributor

For some reason travis fails.

I am not sure what caused travis to fail ?!?

@aothms
Copy link
Member

aothms commented Mar 26, 2020

Many thanks for this @sanderboer. Sorry for the long delay in replying. I'm not entirely sure, but I'm guessing [0] the return of fmod() could be negative in this case, so we probably need to wrap it in std::abs() (which is what ALMOST_THE_SAME also would have done.

[0] http://cpp.sh/9a6s2

aothms added a commit that referenced this pull request May 20, 2020
@aothms
Copy link
Member

aothms commented May 20, 2020

I went with a slightly different fix, but many thanks for the investigations. d811963

@aothms aothms closed this May 20, 2020
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

3 participants