import_nvm - using std::cerr to remove ambiguous << operator on qDebug
This commit is contained in:
parent
a2735f6da4
commit
85d6665430
|
@ -166,17 +166,17 @@ static int Open( OpenMeshType &m, std::vector<Shot<ScalarType> > & shots,
|
||||||
float x,y,z;
|
float x,y,z;
|
||||||
unsigned int r,g,b,i_cam, key_sift,n_corr;
|
unsigned int r,g,b,i_cam, key_sift,n_corr;
|
||||||
uint readValues = fscanf(fp,"%f %f %f ",&x,&y,&z);
|
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<typename OpenMeshType::ScalarType>(x,y,z);
|
(*vi).P() = vcg::Point3<typename OpenMeshType::ScalarType>(x,y,z);
|
||||||
readValues = fscanf(fp,"%d %d %d ",&r,&g,&b);
|
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);
|
(*vi).C() = vcg::Color4b(r,g,b,255);
|
||||||
|
|
||||||
readValues = fscanf(fp,"%d ",&n_corr);
|
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){
|
for(uint j = 0; j < n_corr; ++j){
|
||||||
readValues = fscanf(fp,"%d %d %f %f ",&i_cam,&key_sift,&x,&y);
|
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);
|
Correspondence corr(i_cam,key_sift,x,y);
|
||||||
ch[i].push_back(corr);
|
ch[i].push_back(corr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue