A direct nondiffractive tomographic algorithm is proposed for the determination of the crystal structure from real-space projections obtained by illuminating the sample with white x rays. This approach was applied to the pattern of the directional fine structure in absorption of white x rays recorded for a GaP crystal and allowed for a determination of the electron density distribution within the unit cell.