Ported from https://github.com/mapbox/earcut by @ncannasse
new()
triangulateNode(root:EarNode, useZOrder:Bool):Array<Int>