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

Last face ignored if it's the last line in the file #12

Closed
andystanton opened this issue Nov 16, 2018 · 2 comments
Closed

Last face ignored if it's the last line in the file #12

andystanton opened this issue Nov 16, 2018 · 2 comments

Comments

@andystanton
Copy link
Contributor

andystanton commented Nov 16, 2018

If the face is the last line in the file, it doesn't get added.

v 0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 0.500000 -0.500000
v 0.500000 0.500000 0.500000
v -0.500000 0.500000 0.500000
v -0.500000 0.500000 -0.500000
vn 0.0000 -0.5000 0.0000
vn 0.0000 0.5000 0.0000
vn 0.5000 0.0000 0.0000
vn -0.0000 -0.0000 0.5000
vn -0.5000 -0.0000 -0.0000
vn 0.0000 0.0000 -0.5000
s off
f 1//1 2//1 3//1 4//1
f 5//2 8//2 7//2 6//2
f 1//3 5//3 6//3 2//3
f 2//4 6//4 7//4 3//4
f 3//5 7//5 8//5 4//5
f 5//6 1//6 4//6 8//6

Renders in the viewer like this:
screenshot 2018-11-16 at 20 33 48

@andystanton andystanton changed the title Last face ignored if it's the last line in the file:q Last face ignored if it's the last line in the file Nov 16, 2018
@syoyo
Copy link
Owner

syoyo commented Dec 2, 2018

screen shot 2018-12-02 at 21 17 02

I have confirmed now it loads the last face correctly after merging #14

Thus this issue should be ready to close.

@andystanton
Copy link
Contributor Author

Cool, thanks @syoyo!

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