private void calcSurfaceDistances() {
		surfaceDistanceMax = 0;
		if (bsSurfaceSet == null)
			return;
		surfaceDistances = new float[atomCount];
		for (int i = 0; i < atomCount; i++) {
			surfaceDistances[i] = -1;
			if (bsSurfaceSet.get(i)) {
				float dMin = Float.MAX_VALUE;
				Atom atom = atoms[i];
				for (int j = surfaceAtoms.length; --j >= 0;) {
					float d = atoms[surfaceAtoms[j]].distance(atom);
					dMin = Math.min(d, dMin);
				}
				surfaceDistances[i] = dMin;
				surfaceDistanceMax = Math.max(surfaceDistanceMax, dMin);
			}
		}
	}