ExportCloudsDialog: fixed compilation warning

This commit is contained in:
matlabbe
2017-06-16 16:59:55 -04:00
parent 52a6cc5bad
commit e0640418e4

View File

@@ -1819,7 +1819,6 @@ bool ExportCloudsDialog::getExportedClouds(
iter!= cloudsWithNormals.end(); iter!= cloudsWithNormals.end();
++iter) ++iter)
{ {
bool lostColors = false;
pcl::PolygonMesh::Ptr mesh(new pcl::PolygonMesh); pcl::PolygonMesh::Ptr mesh(new pcl::PolygonMesh);
if(_ui->comboBox_meshingApproach->currentIndex() == 0) if(_ui->comboBox_meshingApproach->currentIndex() == 0)
{ {
@@ -1842,8 +1841,6 @@ bool ExportCloudsDialog::getExportedClouds(
poisson.setScale(_ui->doubleSpinBox_poisson_scale->value()); poisson.setScale(_ui->doubleSpinBox_poisson_scale->value());
poisson.setInputCloud(iter->second); poisson.setInputCloud(iter->second);
poisson.reconstruct(*mesh); poisson.reconstruct(*mesh);
lostColors = true;
} }
_progressDialog->appendText(tr("Mesh %1 created with %2 polygons (%3/%4).").arg(iter->first).arg(mesh->polygons.size()).arg(++i).arg(clouds.size())); _progressDialog->appendText(tr("Mesh %1 created with %2 polygons (%3/%4).").arg(iter->first).arg(mesh->polygons.size()).arg(++i).arg(clouds.size()));
@@ -3337,7 +3334,7 @@ void ExportCloudsDialog::saveTextureMeshes(
previousCameraModels = cameraModels; previousCameraModels = cameraModels;
previousTextureId = textureId; previousTextureId = textureId;
} }
UASSERT(!image.empty()); UASSERT(!image.empty());
imageSize = image.size(); imageSize = image.size();