44 #include <pcl/point_cloud.h>
45 #include <pcl/PolygonMesh.h>
46 #include <pcl/TextureMesh.h>
48 #include <pcl/conversions.h>
49 #include <pcl/range_image/range_image_planar.h>
53 #pragma GCC system_header
55 #include <vtkSmartPointer.h>
56 #include <vtkStructuredGrid.h>
57 #include <vtkPoints.h>
58 #include <vtkPointData.h>
59 #include <vtkCellArray.h>
60 #include <vtkUnsignedCharArray.h>
61 #include <vtkFloatArray.h>
62 #include <vtkPolyDataReader.h>
63 #include <vtkPolyDataWriter.h>
64 #include <vtkPLYReader.h>
65 #include <vtkPLYWriter.h>
66 #include <vtkOBJReader.h>
67 #include <vtkSTLReader.h>
68 #include <vtkSTLWriter.h>
69 #include <vtkPNGReader.h>
70 #include <vtkImageData.h>
71 #include <vtkPolyDataNormals.h>
126 const bool binary_format =
true);
187 const bool binary_format =
true);
199 const bool binary_format =
true);
211 const bool binary_format =
true);
227 template <
typename Po
intT>
void
229 vtkPolyData*
const polydata);
244 template <
typename Po
intT>
void
246 vtkStructuredGrid*
const structured_grid);
253 template <
typename Po
intT>
void
262 template <
typename Po
intT>
void
269 #include <pcl/io/impl/vtk_lib_io.hpp>
PointCloud represents the base class in PCL for storing collections of 3D points.
RangeImagePlanar is derived from the original range image and differs from it because it's not a sphe...
Defines all the PCL implemented PointT point type structures.
void vtkPolyDataToPointCloud(vtkPolyData *const polydata, pcl::PointCloud< PointT > &cloud)
Convert a VTK PolyData object to a pcl::PointCloud one.
PCL_EXPORTS int loadPolygonFileVTK(const std::string &file_name, pcl::PolygonMesh &mesh)
Load a VTK file into a PolygonMesh object.
void vtkStructuredGridToPointCloud(vtkStructuredGrid *const structured_grid, pcl::PointCloud< PointT > &cloud)
Convert a VTK StructuredGrid object to a pcl::PointCloud one.
PCL_EXPORTS void saveRangeImagePlanarFilePNG(const std::string &file_name, const pcl::RangeImagePlanar &range_image)
Write a RangeImagePlanar object to a PNG file.
void pointCloudTovtkStructuredGrid(const pcl::PointCloud< PointT > &cloud, vtkStructuredGrid *const structured_grid)
Convert a pcl::PointCloud object to a VTK StructuredGrid one.
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 loadPolygonFilePLY(const std::string &file_name, pcl::PolygonMesh &mesh)
Load a PLY file into a PolygonMesh object.
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 int loadPolygonFileOBJ(const std::string &file_name, pcl::PolygonMesh &mesh)
Load an OBJ file into a PolygonMesh object.
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.
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.
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.
void pointCloudTovtkPolyData(const pcl::PointCloud< PointT > &cloud, vtkPolyData *const polydata)
Convert a pcl::PointCloud object to a VTK PolyData one.
PCL_EXPORTS int mesh2vtk(const pcl::PolygonMesh &mesh, vtkSmartPointer< vtkPolyData > &poly_data)
Convert a PCL PolygonMesh to a vtkPolyData object.
PCL_EXPORTS int vtk2mesh(const vtkSmartPointer< vtkPolyData > &poly_data, pcl::PolygonMesh &mesh)
Convert vtkPolyData object to a PCL PolygonMesh.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
Defines all the PCL and non-PCL macros used.