42 #include <pcl/surface/vtk_smoothing/vtk.h>
static int vtk2mesh(const vtkSmartPointer< vtkPolyData > &poly_data, pcl::PolygonMesh &mesh)
Convert vtkPolyData object to a PCL PolygonMesh.
static int mesh2vtk(const pcl::PolygonMesh &mesh, vtkSmartPointer< vtkPolyData > &poly_data)
Convert a PCL PolygonMesh to a vtkPolyData object.
static int convertToVTK(const pcl::PolygonMesh &triangles, vtkSmartPointer< vtkPolyData > &triangles_out_vtk)
Convert a PCL PolygonMesh to a VTK vtkPolyData.
static void convertToPCL(vtkSmartPointer< vtkPolyData > &vtk_polygons, pcl::PolygonMesh &triangles)
Convert the vtkPolyData object back to PolygonMesh.
Defines all the PCL and non-PCL macros used.