gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 384 forks source link

Godot Mesh builds dmesh with inverted Triangles. #131

Closed Blargstomp404 closed 4 years ago

Blargstomp404 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

DMesh3.ReverseOrientation() does this

Blargstomp404 commented 4 years ago

Oh awesome, thank you for this awesome tool.