The three dimensional X-ray diffraction technique