void setMapRanges() {
		// ["mapColor" | "getSurface/jvxl-2dContour] --> colorIsosurface
		// ["phase" | colorIsoSurface] --> applyColorScale
		// colorIsosurface --> generateContourData --> createContours
		if (colorByPhase || colorBySign || isBicolorMap && !isContoured) {
			mappedDataMin = -1;
			mappedDataMax = 1;
		}
		if (mappedDataMin == Float.MAX_VALUE || mappedDataMin == mappedDataMax) {
			mappedDataMin = getMinMappedValue();
			mappedDataMax = getMaxMappedValue();
		}
		if (logMessages)
			Logger.debug("setMapRanges: all mapped data " + mappedDataMin + " to " + mappedDataMax
					+ ", red-blue selected " + valueMappedToRed + " to " + valueMappedToBlue);
		if (mappedDataMin == 0 && mappedDataMax == 0) {
			// just set default -1/1 if there is no obvious data
			mappedDataMin = -1;
			mappedDataMax = 1;
		}

		if (!rangeDefined) {
			valueMappedToRed = mappedDataMin;
			valueMappedToBlue = mappedDataMax;
		}
		if (logMessages)
			Logger.debug("setMapRanges: " + mappedDataMin + " " + mappedDataMax + " " + valueMappedToRed + " "
					+ valueMappedToBlue);
		currentMesh.valueMappedToRed = valueMappedToRed;
		currentMesh.valueMappedToBlue = valueMappedToBlue;
		currentMesh.mappedDataMin = mappedDataMin;
		currentMesh.mappedDataMax = mappedDataMax;
	}