Point Cloud Library (PCL)
1.10.1
|
44 #include <pcl/point_cloud.h>
45 #include <pcl/PolygonMesh.h>
46 #include <pcl/TextureMesh.h>
48 #include <pcl/conversions.h>
49 #include <pcl/io/pcd_io.h>
50 #include <pcl/range_image/range_image_planar.h>
54 #pragma GCC system_header
56 #include <vtkVersion.h>
57 #include <vtkSmartPointer.h>
58 #include <vtkStructuredGrid.h>
59 #include <vtkPoints.h>
60 #include <vtkPointData.h>
61 #include <vtkCellArray.h>
62 #include <vtkUnsignedCharArray.h>
63 #include <vtkFloatArray.h>
64 #include <vtkPolyDataReader.h>
65 #include <vtkPolyDataWriter.h>
66 #include <vtkPLYReader.h>
67 #include <vtkPLYWriter.h>
68 #include <vtkOBJReader.h>
69 #include <vtkSTLReader.h>
70 #include <vtkSTLWriter.h>
71 #include <vtkPNGReader.h>
72 #include <vtkImageData.h>
73 #include <vtkPolyDataNormals.h>
128 const bool binary_format =
true);
189 const bool binary_format =
true);
201 const bool binary_format =
true);
213 const bool binary_format =
true);
229 template <
typename Po
intT>
void
231 vtkPolyData*
const polydata);
246 template <
typename Po
intT>
void
248 vtkStructuredGrid*
const structured_grid);
255 template <
typename Po
intT>
void
264 template <
typename Po
intT>
void
271 #include <pcl/io/impl/vtk_lib_io.hpp>
Defines all the PCL and non-PCL macros used.
This file defines compatibility wrappers for low level I/O functions.
void pointCloudTovtkPolyData(const pcl::PointCloud< PointT > &cloud, vtkPolyData *const polydata)
Convert a pcl::PointCloud object to a VTK PolyData one.
PCL_EXPORTS int loadPolygonFile(const std::string &file_name, pcl::PolygonMesh &mesh)
Load a PolygonMesh object given an input file name, based on the file extension.
PCL_EXPORTS int loadPolygonFileSTL(const std::string &file_name, pcl::PolygonMesh &mesh)
Load an STL file into a PolygonMesh object.
PCL_EXPORTS int loadPolygonFilePLY(const std::string &file_name, pcl::PolygonMesh &mesh)
Load a PLY file into a PolygonMesh object.
PointCloud represents the base class in PCL for storing collections of 3D points.
PCL_EXPORTS int mesh2vtk(const pcl::PolygonMesh &mesh, vtkSmartPointer< vtkPolyData > &poly_data)
Convert a PCL PolygonMesh to a vtkPolyData object.
PCL_EXPORTS void saveRangeImagePlanarFilePNG(const std::string &file_name, const pcl::RangeImagePlanar &range_image)
Write a RangeImagePlanar object to a PNG file.
PCL_EXPORTS int loadPolygonFileVTK(const std::string &file_name, pcl::PolygonMesh &mesh)
Load a VTK file into a PolygonMesh object.
PCL_EXPORTS int loadPolygonFileOBJ(const std::string &file_name, pcl::PolygonMesh &mesh)
Load an OBJ file into a PolygonMesh object.
PCL_EXPORTS bool savePolygonFileSTL(const std::string &file_name, const pcl::PolygonMesh &mesh, const bool binary_format=true)
Save a PolygonMesh object into an STL file.
void vtkPolyDataToPointCloud(vtkPolyData *const polydata, pcl::PointCloud< PointT > &cloud)
Convert a VTK PolyData object to a pcl::PointCloud one.
PCL_EXPORTS bool savePolygonFileVTK(const std::string &file_name, const pcl::PolygonMesh &mesh, const bool binary_format=true)
Save a PolygonMesh object into a VTK file.
PCL_EXPORTS bool savePolygonFilePLY(const std::string &file_name, const pcl::PolygonMesh &mesh, const bool binary_format=true)
Save a PolygonMesh object into a PLY file.
PCL_EXPORTS int vtk2mesh(const vtkSmartPointer< vtkPolyData > &poly_data, pcl::PolygonMesh &mesh)
Convert vtkPolyData object to a PCL PolygonMesh.
void vtkStructuredGridToPointCloud(vtkStructuredGrid *const structured_grid, pcl::PointCloud< PointT > &cloud)
Convert a VTK StructuredGrid object to a pcl::PointCloud one.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
PCL_EXPORTS bool savePolygonFile(const std::string &file_name, const pcl::PolygonMesh &mesh, const bool binary_format=true)
Save a PolygonMesh object given an input file name, based on the file extension.
RangeImagePlanar is derived from the original range image and differs from it because it's not a sphe...
void pointCloudTovtkStructuredGrid(const pcl::PointCloud< PointT > &cloud, vtkStructuredGrid *const structured_grid)
Convert a pcl::PointCloud object to a VTK StructuredGrid one.