src/util/PolygonSplitter.js
function (intersections, iMap, indexOffset) {
                iMap = HashMap.reIndex(iMap, indexOffset, 2);

                for (var i = 0, len = intersections.length; i < len; i++) {
                    if (intersections[i].indexEnd >= indexOffset) {
                        intersections[i].indexEnd += 2;
                    }
                    if (intersections[i].indexStart >= indexOffset) {
                        intersections[i].indexStart += 2;
                    }
                }

                return iMap;
            }
function (intersections, iMap, indexOffset) {
                iMap = HashMap.reIndex(iMap, indexOffset, 2);

                for (var i = 0, len = intersections.length; i < len; i++) {
                    if (intersections[i].indexEnd >= indexOffset) {
                        intersections[i].indexEnd += 2;
                    }
                    if (intersections[i].indexStart >= indexOffset) {
                        intersections[i].indexStart += 2;
                    }
                }

                return iMap;
            }
function ( intersections , iMap , indexOffset ) { iMap = HashMap . reIndex ( iMap , indexOffset , 2 ) ; for ( var i = 0 , len = intersections . length ; i < len ; i ++ ) { if ( intersections [ i ] . indexEnd >= indexOffset ) { intersections [ i ] . indexEnd += 2 ; } if ( intersections [ i ] . indexStart >= indexOffset ) { intersections [ i ] . indexStart += 2 ; } } return iMap ; }
Internal. Applications should not call this method.
ReIndexes the intersections due to the poles being added to the array of points
@param {Array} intersections
@param {HashMap} iMap
@param {Number} indexOffset the index from which to start reIndexing
@returns {HashMap} a new hash map with the correct indices
Internal . Applications should not call this method . ReIndexes the intersections due to the poles being added to the array of points