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

Godot Mesh builds dmesh with inverted Triangles. #131

Closed
Blargstomp404 opened this issue Apr 1, 2020 · 3 comments
Closed

Godot Mesh builds dmesh with inverted Triangles. #131

Blargstomp404 opened this issue Apr 1, 2020 · 3 comments

Comments

@Blargstomp404
Copy link

I was able to make a dmesh with godot mesh arrays, it pass the validity check, however the dmesh faces are inverted. Do you have a way to reverse the triangle order or flip the normals?

@Blargstomp404
Copy link
Author

Was able to reverse the triangles indices, faces are pointing in the right direction now. Had to make groups of Index3i and the move the end ints around. "_tempTri.Add(new Index3i(temp3,temp2,temp1));"

@rms80
Copy link
Contributor

rms80 commented Apr 1, 2020

DMesh3.ReverseOrientation() does this

@Blargstomp404
Copy link
Author

Oh awesome, thank you for this awesome tool.

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