We present an alternative numerical reconstruction algorithm for direct tomographic reconstruction of a sample's refractive indices from the measured intensities of its far-field coherent diffraction patterns. We formulate the well-known phase-retrieval problem in ptychography in a tomographic framework which allows for simultaneous reconstruction of the illumination function and the sample's refractive indices in three dimensions. Our iterative reconstruction algorithm is based on the Levenberg-Marquardt algorithm and we demonstrate the performance of our proposed method with simulated and real datasets.