From 957fb711ed63903b82561b48fbc333bcd5525186 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 15 Jan 2009 16:00:46 +0000 Subject: [PATCH] minor gcc compilation issues --- vcg/complex/trimesh/point_sampling.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/point_sampling.h b/vcg/complex/trimesh/point_sampling.h index 8829bcc1..d6d5f978 100644 --- a/vcg/complex/trimesh/point_sampling.h +++ b/vcg/complex/trimesh/point_sampling.h @@ -679,9 +679,9 @@ static vcg::Point3 naiveProjection(vcg::Box3 box, std::v { vcg::Point3 p; - p = RandomBox(box); + //p = RandomBox(box); - FaceIterator + //FaceIterator return p; } @@ -759,7 +759,7 @@ static bool checkPoissonDisk(vcg::SpatialHashTable sht, VertexType *v; VertexType d; - for (it = itBegin; it != itEnd; it++) + for (it = itBegin; it != itEnd; ++it) { v = *it; if (Distance(v->P(),p) < radius) @@ -883,7 +883,7 @@ static void Poissondisk(MetroMesh &m, VertexSampler &ps, int sampleNum, int vers searchSHT.IPiToBox(*currentCell, currentBox); faces.clear(); - for (cellIt = cellBegin; cellIt != cellEnd; cellIt++) + for (cellIt = cellBegin; cellIt != cellEnd; ++cellIt) { faces.push_back(*cellIt); }