I am currently using the Point Cloud Library (PCL) in order to do some work with point clouds. Now I need to compute a mesh for some point cloud and thought that the best thing to do is to use Meshlab. So far so good, my problem is that my point cloud has labels, i.e. it is of the following form:
pcl::PointCloud<pcl::PointXYZRGBL> cloud;
Important: I cannot omit the labels, I have to know after the mesh is computed, which point of the mesh has which label. Later, after some manipulation etc. I save this cloud via
pcl::io::savePLYFileBinary(writePath, *cloud);
which works fine IF the cloud is of type
pcl::PointCloud<pcl::PointXYZRGB> cloud;
but does not work for the first case. Does anyone have some idea what I could do to be able to still get a PLY file which contains labels and can be loaded into Meshlab?
Thanks all!
savePLYFileBinary
saves the file correctly? i.e., what is your problem? MeshLab not able to open the file? MeshLab not able to preserve labels when opening? MeshLab not able to preserve labels after meshing? – cbuchart