PCL_WARN("Mesh has no vertex colors, or vertex colors are not RGB!\n"); printed_once=true; } } } void uniform_sampling(vtkSmartPointer<vtkPolyData>polydata,std::size_tn_samples,boolcalc_normal,boolcalc_color,pcl::PointCloud<pcl::PointXYZRGBNormal>&cloud_out) { polydata->BuildCells();...
Hi~everyone, I'm using PCL and Assimp to convert the STL, IGS, etc file to PCD format file. Now, use the Assimp could convert the import file to OBJ format, then use the pcl_mesh_sampling to get more point cloud data, and generate a file...
vis.addModelFromPolyData(polydata1,"mesh1",0); vis.setRepresentationToSurfaceForAllActors(); vis.spin(); } pcl::PointCloud<pcl::PointXYZ>::Ptrcloud_1(newpcl::PointCloud<pcl::PointXYZ>); uniform_sampling(polydata1, SAMPLE_POINTS_, *cloud_1); ...