code: function updateLocalizer(refObj, targetLocalizersHelpers) {
          let refHelper = refObj.stackHelper;
          let localizerHelper = refObj.localizerHelper;
          let plane = refHelper.slice.cartesianEquation();
          localizerHelper.referencePlane = plane;
  
          // bit of a hack... works fine for this application
          for (let i = 0; i < targetLocalizersHelpers.length; i++) {
            for (let j = 0; j < 3; j++) {
              let targetPlane = targetLocalizersHelpers[i]['plane' + (j + 1)];
              if (
                targetPlane &&
                plane.x.toFixed(6) === targetPlane.x.toFixed(6) &&
                plane.y.toFixed(6) === targetPlane.y.toFixed(6) &&
                plane.z.toFixed(6) === targetPlane.z.toFixed(6)
              ) {
                targetLocalizersHelpers[i]['plane' + (j + 1)] = plane;
              }
            }
          }
  
          // update the geometry will create a new mesh
          localizerHelper.geometry = refHelper.slice.geometry;
        }
docs: Update Layer Mix