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

SVGLoader: Fix float precision in round join computation. #24314

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

slecorne
Copy link
Contributor

@slecorne slecorne commented Jul 5, 2022

Description

Detection of straight path in SVG Loader could be wrong in case of floating point precision issue. In that case an invalid join with a very large miter length was created.

@Mugen87 Mugen87 changed the title Fix float precision in round join computation SVGLoader: Fix float precision in round join computation. Jul 5, 2022
Copy link
Collaborator

@Mugen87 Mugen87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR fixes indeed the parsing of the new test file (and does not affect the existing ones)!

@Mugen87 Mugen87 added this to the r143 milestone Jul 5, 2022
@mrdoob mrdoob merged commit 6a2ff15 into mrdoob:dev Jul 7, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jul 7, 2022

Thanks!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
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.

3 participants