ply2pcd.cpp This can convert PolygonPLYfiles to PCD files As I was not able to load Polygon PLY files (ryanfb/pcl-tools#2 ) using the existing tool (https://github.com/ryanfb/pcl-tools), a different function was used and the problem got solved. More at http://www.pcl-users.org/error-in-loading-PLY-files-sample-file-and-code-attached-td4035114.html#a4035116