//-----------------------读取CAD模型------------------------vtkSmartPointer<vtkSTLReader> reader = vtkSmartPointer<vtkSTLReader>::New();reader->SetFileName("data.stl");reader->Update();//----------------------转出到poly格式-----------------------vtkSmartPointer<vtkPolyData> polyData = vtkSmartPointer<vtkPolyData>::New();polyData = reader->GetOutput();polyData->GetNumberOfPoints();pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>());//-----------------------从poly转pcd-------------------------pcl::io::vtkPolyDataToPointCloud(polyData, *cloud);