Max Kaufmann
Max Kaufmann
No malformed-data warnings importing into maya or anything.
Yeah, I'm accounting for those. BTW, `(-idx - 1)` is just bitwise complement, so you can use `~idx` and save some instructions. [mecha.zip](https://github.com/nem0/OpenFBX/files/4816112/mecha.zip)
The algorithm is not too tricky -- it's called "ear-cutting." A reference: http://www-cgrl.cs.mcgill.ca/~godfried/teaching/cg-projects/97/Ian/algorithm1.html Implementation was only ~200LOC 
Yeah, that's what I've already implemented. Just putting it on your radar :)
For the curious: https://github.com/maxattack/Trinket/blob/master/Source/Triangulate.cpp