Analysis of the crystal structure of materials by passing x-rays through them and registering the diffraction (scattering) image of the x-rays.