src/tools/FreehandRoiSculptorTool.js
/**
   * Inserts additional handles in sparsely sampled regions of the contour. The
   * new handles are placed on the circle defined by the the freehandSculpter's
   * toolSize and the mouse position.
   * @private
   * @param {Array} pushedHandles
   * @returns {void}
   */
Inserts additional handles in sparsely sampled regions of the contour. The
new handles are placed on the circle defined by the the freehandSculpter's
toolSize and the mouse position.
@private
@param {Array} pushedHandles
@returns {void}
Inserts additional handles in sparsely sampled regions of the contour . The new handles are placed on the circle defined by the the freehandSculpter ' s toolSize and the mouse position . @private @param { Array } pushedHandles @returns { void }
_insertNewHandles(pushedHandles) {
    const indiciesToInsertAfter = this._findNewHandleIndicies(pushedHandles);
    let newIndexModifier = 0;
    for (let i = 0; i < indiciesToInsertAfter.length; i++) {
      const insertIndex = indiciesToInsertAfter[i] + 1 + newIndexModifier;
      this._insertHandleRadially(insertIndex);
      newIndexModifier++;
    }
  }
_insertNewHandles ( pushedHandles ) { const indiciesToInsertAfter = this . _findNewHandleIndicies ( pushedHandles ) ; let newIndexModifier = 0 ; for ( let i = 0 ; i < indiciesToInsertAfter . length ; i ++ ) { const insertIndex = indiciesToInsertAfter [ i ] + 1 + newIndexModifier ; this . _insertHandleRadially ( insertIndex ) ; newIndexModifier ++ ; } }
Inserts additional handles in sparsely sampled regions of the contour.
Inserts additional handles in sparsely sampled regions of the contour .