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

Bug: Report throw IndexError: list index out of range when the face line is not the same #141

Open
FavorMylikes opened this issue May 16, 2022 · 2 comments

Comments

@FavorMylikes
Copy link

Reproduce

usemtl plane678
f 480/3598 489/3597 477/3599
f 115 1049 116
f 116 1049 128
f 1040 125 127

Exception

Traceback (most recent call last):
  File "..\lib\site-packages\pywavefront\parser.py", line 129, in parse
    self.dispatcher.get(self.values[0], self.parse_fallback)()
  File "..\lib\site-packages\pywavefront\obj.py", line 274, in parse_f
    self.material.vertices += list(consumed_vertices)
  File "..\lib\site-packages\pywavefront\obj.py", line 384, in consume_faces
    t_index = (int(parts[1]) - 1) if has_vt else None
IndexError: list index out of range

Here parts = 115

@einarf
Copy link
Member

einarf commented May 16, 2022

What tool created this file? Never seen face definitions change like this before.

@FavorMylikes
Copy link
Author

@einarf We write it with our own code, but meshlab could render it correctly

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

No branches or pull requests

2 participants