Diffuse interface method for 3D volume reconstruction