From 4e6ff1e97a516729ab52dd0eee1aa0958a5d64bc Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 1 Jul 2008 09:34:43 +0000 Subject: [PATCH] removed harmless warnings --- vcg/complex/trimesh/point_sampling.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/point_sampling.h b/vcg/complex/trimesh/point_sampling.h index bf716667..e3407eb0 100644 --- a/vcg/complex/trimesh/point_sampling.h +++ b/vcg/complex/trimesh/point_sampling.h @@ -168,7 +168,7 @@ static void FillAndShuffleVertexPointVector(MetroMesh & m, std::vector::iterator newEnd = unique(Edges.begin(), Edges.end()); typename std::vector::iterator ei; - qDebug("Edges %i (unique %i) ",Edges.size(),newEnd-Edges.begin()); + qDebug("Edges %i (unique %i) ",(int)Edges.size(), (int)(newEnd-Edges.begin()) ); Edges.resize(newEnd-Edges.begin()); for(ei=Edges.begin(); ei!=Edges.end(); ++ei) { @@ -447,7 +447,7 @@ static void FaceSimilar(MetroMesh & m, VertexSampler &ps,int sampleNum) qDebug("samplePerAreaUnit %f",samplePerAreaUnit); // Similar Triangles sampling. - int cnt = 0, n_samples_per_edge; + int n_samples_per_edge; double n_samples_decimal = 0.0; FaceIterator fi; @@ -466,7 +466,6 @@ static void FaceSimilar(MetroMesh & m, VertexSampler &ps,int sampleNum) SingleFaceSimilar(&*fi,ps, n_samples_per_edge); } n_samples_decimal -= (double) n_samples; - } }