eliminateHole function

dynamic eliminateHole(
  1. dynamic hole,
  2. dynamic outerNode
)

Implementation

eliminateHole(hole, outerNode) {
  outerNode = findHoleBridge(hole, outerNode);
  if (outerNode != null) {
    var b = splitPolygon(outerNode, hole);

    // filter collinear points around the cuts
    filterPoints(outerNode, outerNode.next);
    filterPoints(b, b.next);
  }
}