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

Fix the bug about the direction of Normal. #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nothinglo
Copy link

I have tested. It seems wrong direction of the triangle normal.

@DaviesX
Copy link

DaviesX commented Jun 11, 2017

If the order of those 3 vertices is counter-clockwise, then the normal is indeed v_12 x v_13.

@mmp
Copy link
Owner

mmp commented Dec 29, 2018

Changing this would end up flipping the normals of all triangles, which in turn would cause images to be quite different. Admittedly we haven't documented the expected vertex ordering, but given @DaviesX 's observation, I think that decreeing that they are counter-clockwise and leaving the code as is is the best thing at this point.

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