v1.0
This commit is contained in:
@@ -10,7 +10,10 @@ void MyThread::run()
|
||||
if(!pcd.empty())
|
||||
{
|
||||
PointCloud<PointXYZRGB>::Ptr cloudPtr(new PointCloud<PointXYZRGB>);
|
||||
io::loadPCDFile(pcd, *cloudPtr);
|
||||
if (QString::fromStdString(pcd).endsWith(".pcd", Qt::CaseInsensitive))
|
||||
io::loadPCDFile(pcd, *cloudPtr);
|
||||
else if (QString::fromStdString(pcd).endsWith(".ply", Qt::CaseInsensitive))
|
||||
io::loadPLYFile(pcd, *cloudPtr);
|
||||
cloud = *cloudPtr;
|
||||
}
|
||||
|
||||
@@ -29,7 +32,3 @@ PointCloud<PointXYZRGB> MyThread::getCloud()
|
||||
{
|
||||
return cloud;
|
||||
}
|
||||
|
||||
MyThread::~MyThread()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user