src/tools/FreehandRoiSculptorTool.js
/**
   * Given a pair of indicies, and the number of points already removed,
   * convert to the correct live indicies.
   *
   * @private
   * @static
   * @param {Object} pair A pairs of handle indicies.
   * @param {Number} removedIndexModifier The number of handles already removed.
   * @returns {Object} The corrected pair of handle indicies.
   */
Given a pair of indicies, and the number of points already removed,
convert to the correct live indicies.

@private
@static
@param {Object} pair A pairs of handle indicies.
@param {Number} removedIndexModifier The number of handles already removed.
@returns {Object} The corrected pair of handle indicies.
Given a pair of indicies and the number of points already removed convert to the correct live indicies . @private @static @param { Object } pair A pairs of handle indicies . @param { Number } removedIndexModifier The number of handles already removed . @returns { Object } The corrected pair of handle indicies .
static _getCorrectedPair(pair, removedIndexModifier) {
    const correctedPair = [
      pair[0] - removedIndexModifier,
      pair[1] - removedIndexModifier,
    ];
    if (correctedPair[1] < 0) {
      correctedPair[1] = 0;
    }
    return correctedPair;
  }
static _getCorrectedPair ( pair , removedIndexModifier ) { const correctedPair = [ pair [ 0 ] - removedIndexModifier , pair [ 1 ] - removedIndexModifier , ] ; if ( correctedPair [ 1 ] < 0 ) { correctedPair [ 1 ] = 0 ; } return correctedPair ; }
Given a pair of indicies, and the number of points already removed,
 convert to the correct live indicies.
Given a pair of indicies and the number of points already removed convert to the correct live indicies .
// Deal with edge case of last node + first node.