Support both node ordering directions for triangle flipping