ply ファイルをプログラムにインポートすると、次のメッセージで問題が発生したというエラー メッセージが表示されます。
C:\Users\...\data\apple.ply:8: property 'list uint8 int32 vertex_indices' of element 'face' is not handled
https://people.sc.fsu.edu/~jburkardt/data/ply/apple.plyのサンプル ply ファイルを使用しました。
さまざまなソースからのさまざまな ply ファイルを既に試しましたが、どれも機能しません。プログラムをデバッグするとき、io::loadPLYFile は有効なポイント クラウドを生成しません。PCL と私のプログラムのランタイム ライブラリは同じです。
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl/search/kdtree.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/surface/marching_cubes_rbf.h>
using namespace pcl;
using namespace std;
int
main (int argc, char** argv)
{
PointCloud<PointXYZ>::Ptr cloud (new PointCloud<PointXYZ>);
std::cout << "Start Debug?" << std::endl;
std::cin.ignore();
if(io::loadPLYFile<PointXYZ> (argv[1], *cloud) == -1){
cout << "ERROR: couldn't find file" << endl;
return (1);
} else {
cout << "loaded" << endl;
NormalEstimationOMP<PointXYZ, Normal> ne;
search::KdTree<PointXYZ>::Ptr tree1 (new search::KdTree<PointXYZ>);
tree1->setInputCloud (cloud);
ne.setInputCloud (cloud);
ne.setSearchMethod (tree1);
ne.setKSearch (20);
PointCloud<Normal>::Ptr normals (new PointCloud<Normal>);
ne.compute (*normals);
ドキュメントhttp://docs.pointclouds.org/1.3.1/group__io.htmlで説明されているように、PCL関数io::loadPLYFileがファイルを適切にロードすることを期待します