Simulation of optical fiber growth in three dimensions