Moves 3D code into pkzo3d library.