8 #include <pcl/PCLHeader.h>
9 #include <pcl/PCLPointCloud2.h>
10 #include <pcl/Vertices.h>
36 if (success ==
false) {
42 std::transform(mesh2.
polygons.begin (),
45 [point_offset](
auto polygon)
47 std::transform(polygon.vertices.begin (),
48 polygon.vertices.end (),
49 polygon.vertices.begin (),
50 [point_offset](auto& point_idx)
52 return point_idx + point_offset;
97 using Ptr = shared_ptr< ::pcl::PolygonMesh>;
98 using ConstPtr = shared_ptr<const ::pcl::PolygonMesh>;
104 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PolygonMesh &v)
106 s <<
"header: " << std::endl;
108 s <<
"cloud: " << std::endl;
110 s <<
"polygons[]" << std::endl;
111 for (std::size_t i = 0; i < v.polygons.size (); ++i)
113 s <<
" polygons[" << i <<
"]: " << std::endl;
PCL_EXPORTS bool concatenate(const pcl::PointCloud< PointT > &cloud1, const pcl::PointCloud< PointT > &cloud2, pcl::PointCloud< PointT > &cloud_out)
Concatenate two pcl::PointCloud<PointT>
std::ostream & operator<<(std::ostream &ostream, int8 value)
PolygonMesh::ConstPtr PolygonMeshConstPtr
PolygonMesh::Ptr PolygonMeshPtr
static bool concatenate(pcl::PCLPointCloud2 &cloud1, const pcl::PCLPointCloud2 &cloud2)
Inplace concatenate two pcl::PCLPointCloud2.
static bool concatenate(pcl::PolygonMesh &mesh1, const pcl::PolygonMesh &mesh2)
Inplace concatenate two pcl::PolygonMesh.
shared_ptr< ::pcl::PolygonMesh > Ptr
std::vector< ::pcl::Vertices > polygons
static bool concatenate(const PolygonMesh &mesh1, const PolygonMesh &mesh2, PolygonMesh &mesh_out)
Concatenate two pcl::PCLPointCloud2.
::pcl::PCLPointCloud2 cloud
shared_ptr< const ::pcl::PolygonMesh > ConstPtr