From 85d66654308a4ab80068cad36a41cfe080728ad6 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Tue, 8 Jun 2021 10:40:30 +0200 Subject: [PATCH] import_nvm - using std::cerr to remove ambiguous << operator on qDebug --- wrap/io_trimesh/import_nvm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wrap/io_trimesh/import_nvm.h b/wrap/io_trimesh/import_nvm.h index 06f70ac5..8991855a 100644 --- a/wrap/io_trimesh/import_nvm.h +++ b/wrap/io_trimesh/import_nvm.h @@ -166,17 +166,17 @@ static int Open( OpenMeshType &m, std::vector > & shots, float x,y,z; unsigned int r,g,b,i_cam, key_sift,n_corr; uint readValues = fscanf(fp,"%f %f %f ",&x,&y,&z); - if (readValues < 3) qDebug() << "Point " << i << ": only " << readValues << " coordinates read!"; + if (readValues < 3) std::cerr << "Point " << i << ": only " << readValues << " coordinates read!"; (*vi).P() = vcg::Point3(x,y,z); readValues = fscanf(fp,"%d %d %d ",&r,&g,&b); - if (readValues < 3) qDebug() << "Point " << i << ": only " << readValues << " color values read!"; + if (readValues < 3) std::cerr << "Point " << i << ": only " << readValues << " color values read!"; (*vi).C() = vcg::Color4b(r,g,b,255); readValues = fscanf(fp,"%d ",&n_corr); - if (readValues < 1) qDebug() << "Point " << i << ": no n correspondences read!"; + if (readValues < 1) std::cerr << "Point " << i << ": no n correspondences read!"; for(uint j = 0; j < n_corr; ++j){ readValues = fscanf(fp,"%d %d %f %f ",&i_cam,&key_sift,&x,&y); - if (readValues != 3) qDebug() << "Point " << i << "; Corresp: " << j << ": only " << readValues << " values read!"; + if (readValues != 3) std::cerr << "Point " << i << "; Corresp: " << j << ": only " << readValues << " values read!"; Correspondence corr(i_cam,key_sift,x,y); ch[i].push_back(corr); }