fixed triangle orientation is wrong in some case