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

3DMLoader: Assure a minimum pointCount of 2. #20692

Merged
merged 1 commit into from
Nov 18, 2020
Merged

Conversation

perkma
Copy link
Contributor

@perkma perkma commented Nov 17, 2020

I have some .3dm-files that failed to load with 3dmloader.
I found out that the problems are caused by ArcCurves where the calculated pointCount is 1.
After setting the lower bound of pointCount to 2 my files can be loaded without problems.

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 17, 2020

@fraguada Looking good?

@Mugen87 Mugen87 changed the title assure a minimum pointCount of 2 3DMLoader: Assure a minimum pointCount of 2. Nov 17, 2020
@mrdoob mrdoob added this to the r123 milestone Nov 17, 2020
@fraguada
Copy link
Contributor

@perkma You are right. As it is, arcs between 5 to 10 degrees will only be evaluated with one point, resulting in an invalid curve. Changing the value you propose takes care of that gap:
arcDegreeIssue
Thanks for catching that!

@mrdoob mrdoob merged commit f43ec7c into mrdoob:dev Nov 18, 2020
@mrdoob
Copy link
Owner

mrdoob commented Nov 18, 2020

Thanks!

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

4 participants