sortByMortonWithReset(splitNode); earcutLinkedList(searchNode, tessellation, State.INIT, mortonIndexed); earcutLinkedList(splitNode, tessellation, State.INIT, mortonIndexed);
List<Triangle> result = earcutLinkedList(outerNode, new ArrayList<>(), State.INIT, mortonOptimized); if (result.size() == 0) { throw new IllegalArgumentException("Unable to Tessellate shape [" + polygon + "]. Possible malformed shape detected.");