3D file writer.