3D imaging using scanning diffractometry