I'm working with PCL and a Mesh editor (MeshLab). I'm interested in importing my meshes to PCL to do some 3D processing.
I've a mesh model in ply format. When I load the model with the code:
PointCloud<PointXYZRGBA>::Ptr cloud (new PointCloud<PointXYZRGBA> ());
pcl::io::loadPLYFile<pcl::PointXYZRGBA>(argv[1], *cloud);
and I visualize it as a point cloud:
visualization::PCLVisualizer viewer ("Model");
viewer.addPointCloud (cloud,"model");
the geometry is different from loading and visualizing the mesh directly:
viewer.addModelFromPLYFile(argv[1], "model");
In the second case, I visualize the model exactly as I do with a Mesh editor, but in the first case I visualize a deformed version of it, i.e and sphere is like and ellipsoid. What is happening here? Maybe I should manually sample the mesh?
If I add the two models in the viewer, the difference is very evident, the point cloud is smaller than the mesh, and it has suffered some strange deformation (please, see attached image)
Thank you very much

(source: pcl-users.org)