Added export of 3D file functionality.