Some bug fixes on Triangle
Fixed error in GMS export, added function for checking polygon orientation