@@ 379-382 (lines=4) @@ | ||
376 | if ($firstEle == $lastElePoly) { |
|
377 | $polygons[$index] = array_merge($polygons[$index], $outer); |
|
378 | unset($outers[$key]); |
|
379 | } elseif ($lastEle == $lastElePoly) { |
|
380 | $polygons[$index] = array_merge($polygons[$index], array_reverse($outer)); |
|
381 | unset($outers[$key]); |
|
382 | } elseif ($firstEle == $firstElePoly) { |
|
383 | $polygons[$index] = array_merge(array_reverse($outer), $polygons[$index]); |
|
384 | unset($outers[$key]); |
|
385 | } elseif ($lastEle == $firstElePoly) { |
|
@@ 385-388 (lines=4) @@ | ||
382 | } elseif ($firstEle == $firstElePoly) { |
|
383 | $polygons[$index] = array_merge(array_reverse($outer), $polygons[$index]); |
|
384 | unset($outers[$key]); |
|
385 | } elseif ($lastEle == $firstElePoly) { |
|
386 | $polygons[$index] = array_merge($outer, $polygons[$index]); |
|
387 | unset($outers[$key]); |
|
388 | } |
|
389 | } |
|
390 | ||
391 | $firstElePoly = $polygons[$index][0]; |