Category : point-cloud-library

I’m trying to concatenate a pcl::PolygonMesh triangulation variable (triang) to a "buffer" pcl::PolygonMesh triangulation variable (triang_buffer). I’ve tried to do it by: triang_buffer += triang; and by: bool pcl::PolygonMesh::concatenate(triang_buffer, triang); but when I compile it, it appears these errors respectively: error: no match for ‘operator+=’ (operand types are ‘pcl::PolygonMesh’ and ‘pcl::PolygonMesh’) triang_buffer += triang; and ..

Read more

I have made my own point type which has a scalar value. My point cloud is huge, so I need to voxel grid it. However, when I voxel grid my data I lose my scalar values, they are turned to 0 : //include #define PCL_NO_PRECOMPILE #include <pcl/pcl_macros.h> #include <pcl/point_types.h> #include <pcl/point_cloud.h> #include <pcl/filters/approximate_voxel_grid.h> using namespace ..

Read more

Visual Studio 2019 (MSVC2017) Libary: PCL 1.8.1 I am not all that familiar with programming, currently I am attempting to use SampleConsensusModelNormalPlane so I can utilize both the XYZ coordinate points and the Normals that were generated using PCL’s Normal Estimation, but I am unable to find nor understand how to implement not initialize it. ..

Read more

I just wondering how to referes my PointCloud::Ptr to my another PointCloud::Ptr without copying it to another classes. So i have 3 class: typedef pcl::PointCloud<PointXYZ> PointCloud; –main_program.hpp PointCloud::Ptr cloud_original_ = …; //I opened the pcd file VolumeServer volume_; volume_.setPointCloud(cloud_original_); CutCloud process_; process_.setPointCloud(cloud_original_); … –volume.hpp have VolumeServer class PointCloud::Ptr cloud_volume_; void setPointCloud(const PointCloud::Ptr &cloud = nullptr) ..

Read more