ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
pcl2cc Class Reference

PCL to CC cloud converter. More...

#include <sm2cc.h>

Static Public Member Functions

static ccMeshConvert (PCLTextureMesh::ConstPtr textureMesh)
 Converts a PCL point cloud to a ccPointCloud. More...
 
static ccPointCloudConvert (const PCLCloud &pclCloud, bool ignoreScalars=false, bool ignoreRgb=false)
 
static ccMeshConvert (const PCLCloud &pclCloud, const std::vector< pcl::Vertices > &polygons, bool ignoreScalars=false, bool ignoreRgb=false)
 
static bool CopyXYZ (const PCLCloud &pclCloud, ccPointCloud &ccCloud, uint8_t coordinateType)
 
static bool CopyNormals (const PCLCloud &pclCloud, ccPointCloud &ccCloud)
 
static bool CopyRGB (const PCLCloud &pclCloud, ccPointCloud &ccCloud)
 
static bool CopyScalarField (const PCLCloud &pclCloud, const std::string &sfName, ccPointCloud &ccCloud, bool overwriteIfExist=true)
 
static void FromPCLMaterial (const PCLMaterial &inMaterial, ccMaterial::Shared &outMaterial)
 

Detailed Description

PCL to CC cloud converter.

Definition at line 25 of file sm2cc.h.

Member Function Documentation

◆ Convert() [1/3]

ccPointCloud * pcl2cc::Convert ( const PCLCloud pclCloud,
bool  ignoreScalars = false,
bool  ignoreRgb = false 
)
static

Definition at line 465 of file sm2cc.cpp.

References CopyNormals(), CopyRGB(), CopyScalarField(), CopyXYZ(), ExistField(), fields, and name.

◆ Convert() [2/3]

ccMesh * pcl2cc::Convert ( const PCLCloud pclCloud,
const std::vector< pcl::Vertices > &  polygons,
bool  ignoreScalars = false,
bool  ignoreRgb = false 
)
static

◆ Convert() [3/3]

◆ CopyNormals()

bool pcl2cc::CopyNormals ( const PCLCloud pclCloud,
ccPointCloud ccCloud 
)
static

◆ CopyRGB()

bool pcl2cc::CopyRGB ( const PCLCloud pclCloud,
ccPointCloud ccCloud 
)
static

◆ CopyScalarField()

◆ CopyXYZ()

bool pcl2cc::CopyXYZ ( const PCLCloud pclCloud,
ccPointCloud ccCloud,
uint8_t  coordinateType 
)
static

Definition at line 88 of file sm2cc.cpp.

References ccPointCloud::reserve(), and CVLog::Warning().

Referenced by Convert().

◆ FromPCLMaterial()


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