int i0 = (isAll ? atomCount - 1 : bsSelected.nextSetBit(0));
if (mads == null && i0 >= 0)
mads = new short[atomCount];
for (int i = i0; i >= 0; i = (isAll ? i - 1 : bsSelected.nextSetBit(i + 1))) {
Atom atom = atoms[i];
mads[i] = atom.calculateMad(viewer, rd);
// System.out.println("atomSHape " + atom + " mad=" + mads[i]);
bsSizeSet.set(i, isVisible);
atom.setShapeVisibility(myVisibilityFlag, isVisible);
}
}