8 #include <pcl/PCLHeader.h>
9 #include <pcl/PCLPointCloud2.h>
10 #include <pcl/Vertices.h>
41 std::transform(mesh2.
polygons.begin (),
44 [point_offset](
auto polygon)
46 std::transform(polygon.vertices.begin (),
47 polygon.vertices.end (),
48 polygon.vertices.begin (),
49 [point_offset](auto& point_idx)
51 return point_idx + point_offset;
96 using Ptr = shared_ptr< ::pcl::PolygonMesh>;
97 using ConstPtr = shared_ptr<const ::pcl::PolygonMesh>;
103 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PolygonMesh &v)
105 s <<
"header: " << std::endl;
107 s <<
"cloud: " << std::endl;
109 s <<
"polygons[]" << std::endl;
110 for (std::size_t i = 0; i < v.polygons.size (); ++i)
112 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::PolygonMesh.
::pcl::PCLPointCloud2 cloud
shared_ptr< const ::pcl::PolygonMesh > ConstPtr