From bb4f118a03dfed7e7a28ebe9f8ff801cdf11e4ff Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 7 Nov 2012 01:14:27 +0000 Subject: [PATCH] Small bug in the time computation of Poisson sampling --- vcg/complex/algorithms/point_sampling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index a0fcdb3e..ab3401e7 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -1212,7 +1212,7 @@ static void PoissonDiskPruning(MetroMesh &origMesh, VertexSampler &ps, MetroMesh if(pp.pds) { pp.pds->gridCellNum = (int)montecarloSHT.AllocatedCells.size(); pp.pds->montecarloSampleNum = montecarloMesh.vn; -} + } int removedCnt=0; if(pp.preGenFlag) { @@ -1243,7 +1243,7 @@ static void PoissonDiskPruning(MetroMesh &origMesh, VertexSampler &ps, MetroMesh int t2 = clock(); if(pp.pds) { - pp.pds->gridTime = t1-t1; + pp.pds->gridTime = t1-t0; pp.pds->pruneTime = t2-t1; } }