impl rotate and add support for ply file format