We present a method for obtaining quantitative three-dimensional reconstructions of the refractive index distribution of optical fibres and grating structures. We confirm that the reconstructed refractive index is in agreement with the known properties of the sample.