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); }