-
Notifications
You must be signed in to change notification settings - Fork 79
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
expose 'normals' in Wavefront object #111
Comments
It needs to be documented, but searching in the issues here you can find : #87 (comment) |
I continued playing with this object a bit more and I observed the following: I'm not too familiar with the format, but this seems incorrect: gives an UNORDERED list of normals, not vertices, definitely not obj.vertices (which produces correct results) edit: ok got it :) |
Yep. You just have to look at the format string. The attributes are always in the same order, so its simple to check what attributes are present with a couple of |
Closing and duping this with #103 |
I couldn't find how to access 'normals' in the doc. looking at the code it seems they are parsed but not exposed;
eventually I managed to access it by 'obj.parser.normals' but it isn't trivial.
also I'm not sure about the format, shouldn't they be per mesh/material, and not global?
edit:
I'm not too familiar with the format, but this seems incorrect:
obj.meshes[None].materials[0].vertices
gives an UNORDERED list of normals, not vertices, definitely not obj.vertices (which produces correct results)
The text was updated successfully, but these errors were encountered: