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