(hole, outerNode)
| 1887 | |
| 1888 | // find a bridge between vertices that connects hole with an outer ring and and link it |
| 1889 | function eliminateHole(hole, outerNode) { |
| 1890 | outerNode = findHoleBridge(hole, outerNode); |
| 1891 | if (outerNode) { |
| 1892 | var b = splitPolygon(outerNode, hole); |
| 1893 | filterPoints(b, b.next); |
| 1894 | } |
| 1895 | } |
| 1896 | |
| 1897 | // David Eberly's algorithm for finding a bridge between hole and outer polygon |
| 1898 | function findHoleBridge(hole, outerNode) { |
no test coverage detected