I'm not sure I'd be able to figure it out easily if I didn't already know how a CAT scan works, but I agree it's a excellent demonstration of the principle
In a closer analogy to a CAT scan, each nail would have a string connecting it to a ~10 degree spread of nails on the opposite side, and each string would be grayscale.
The real physics is quite tricky, because you actually emit a variety of x-ray energies at once, each with different penetrating power, and xray flux varies spatially as well. this means each of your angular strings has its own grayscale response curve.
heres a simple rundown: https://radiologykey.com/computed-tomography-16/