src/util/PolygonSplitter.js
function (intersections, iMap) {
                for (var i = 0; i < intersections.length - 1; i += 2) {
                    var i0 = intersections[i];
                    var i1 = intersections[i + 1];

                    var iEnd0 = iMap.get(i0.indexEnd);
                    var iStart0 = iMap.get(i0.indexStart);
                    var iEnd1 = iMap.get(i1.indexEnd);
                    var iStart1 = iMap.get(i1.indexStart);

                    iEnd0.linkTo = i1.indexStart;
                    iStart0.linkTo = i1.indexEnd;
                    iEnd1.linkTo = i0.indexStart;
                    iStart1.linkTo = i0.indexEnd;
                }
            }
function (intersections, iMap) {
                for (var i = 0; i < intersections.length - 1; i += 2) {
                    var i0 = intersections[i];
                    var i1 = intersections[i + 1];

                    var iEnd0 = iMap.get(i0.indexEnd);
                    var iStart0 = iMap.get(i0.indexStart);
                    var iEnd1 = iMap.get(i1.indexEnd);
                    var iStart1 = iMap.get(i1.indexStart);

                    iEnd0.linkTo = i1.indexStart;
                    iStart0.linkTo = i1.indexEnd;
                    iEnd1.linkTo = i0.indexStart;
                    iStart1.linkTo = i0.indexEnd;
                }
            }
function ( intersections , iMap ) { for ( var i = 0 ; i < intersections . length - 1 ; i += 2 ) { var i0 = intersections [ i ] ; var i1 = intersections [ i + 1 ] ; var iEnd0 = iMap . get ( i0 . indexEnd ) ; var iStart0 = iMap . get ( i0 . indexStart ) ; var iEnd1 = iMap . get ( i1 . indexEnd ) ; var iStart1 = iMap . get ( i1 . indexStart ) ; iEnd0 . linkTo = i1 . indexStart ; iStart0 . linkTo = i1 . indexEnd ; iEnd1 . linkTo = i0 . indexStart ; iStart1 . linkTo = i0 . indexEnd ; } }
Internal. Applications should not call this method.
Links adjacents pairs of intersection by index
@param {Array} intersections
@param {HashMap} iMap
Internal . Applications should not call this method . Links adjacents pairs of intersection by index