Small bug in the time computation of Poisson sampling

This commit is contained in:
Paolo Cignoni 2012-11-07 01:14:27 +00:00
parent 4e6a97770b
commit bb4f118a03
1 changed files with 2 additions and 2 deletions

View File

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