Point Cloud Library (PCL)  1.14.1-dev
List of all members | Static Public Member Functions
pcl::VTKUtils Class Reference

#include <pcl/surface/vtk_smoothing/vtk_utils.h>

Static Public Member Functions

static int convertToVTK (const pcl::PolygonMesh &triangles, vtkSmartPointer< vtkPolyData > &triangles_out_vtk)
 Convert a PCL PolygonMesh to a VTK vtkPolyData. More...
 
static void convertToPCL (vtkSmartPointer< vtkPolyData > &vtk_polygons, pcl::PolygonMesh &triangles)
 Convert the vtkPolyData object back to PolygonMesh. More...
 
static int vtk2mesh (const vtkSmartPointer< vtkPolyData > &poly_data, pcl::PolygonMesh &mesh)
 Convert vtkPolyData object to a PCL PolygonMesh. More...
 
static int mesh2vtk (const pcl::PolygonMesh &mesh, vtkSmartPointer< vtkPolyData > &poly_data)
 Convert a PCL PolygonMesh to a vtkPolyData object. More...
 

Detailed Description

Definition at line 48 of file vtk_utils.h.

Member Function Documentation

◆ convertToPCL()

static void pcl::VTKUtils::convertToPCL ( vtkSmartPointer< vtkPolyData > &  vtk_polygons,
pcl::PolygonMesh triangles 
)
static

Convert the vtkPolyData object back to PolygonMesh.

Parameters
[in]vtk_polygons
[out]trianglesthe PolygonMesh to store the vtkPolyData in.

◆ convertToVTK()

static int pcl::VTKUtils::convertToVTK ( const pcl::PolygonMesh triangles,
vtkSmartPointer< vtkPolyData > &  triangles_out_vtk 
)
static

Convert a PCL PolygonMesh to a VTK vtkPolyData.

Parameters
[in]trianglesPolygonMesh to be converted to vtkPolyData, stored in the object.
[out]triangles_out_vtk

◆ mesh2vtk()

static int pcl::VTKUtils::mesh2vtk ( const pcl::PolygonMesh mesh,
vtkSmartPointer< vtkPolyData > &  poly_data 
)
static

Convert a PCL PolygonMesh to a vtkPolyData object.

Parameters
[in]meshReference to PCL Polygon Mesh
[out]poly_dataPointer (vtkSmartPointer) to a vtkPolyData object
Returns
Number of points in the point cloud of mesh.

◆ vtk2mesh()

static int pcl::VTKUtils::vtk2mesh ( const vtkSmartPointer< vtkPolyData > &  poly_data,
pcl::PolygonMesh mesh 
)
static

Convert vtkPolyData object to a PCL PolygonMesh.

Parameters
[in]poly_dataPointer (vtkSmartPointer) to a vtkPolyData object
[out]meshPCL Polygon Mesh to fill
Returns
Number of points in the point cloud of mesh.

The documentation for this class was generated from the following file: