repair the point cloud transformation function