Small changes in comments

This commit is contained in:
Paolo Cignoni 2013-09-10 14:21:48 +00:00
parent d974bf2770
commit 0263e6df9d
1 changed files with 2 additions and 2 deletions

View File

@ -1292,7 +1292,7 @@ static void ComputePoissonSampleRadii(MetroMesh &sampleMesh, ScalarType diskRadi
// initialize spatial hash table for searching // initialize spatial hash table for searching
// radius is the radius of empty disk centered over the samples (e.g. twice of the empty space disk) // radius is the radius of empty disk centered over the samples (e.g. twice of the empty space disk)
// This radius implies that when we pick a sample in a cell all that cell probably will not be touched again. // This radius implies that when we pick a sample in a cell all that cell probably will not be touched again.
// Howvever we must ensure that we do not put too many vertices inside each hash // Howvever we must ensure that we do not put too many vertices inside each hash cell
static void InitSpatialHashTable(MetroMesh &montecarloMesh, MontecarloSHT &montecarloSHT, ScalarType diskRadius, static void InitSpatialHashTable(MetroMesh &montecarloMesh, MontecarloSHT &montecarloSHT, ScalarType diskRadius,
const struct PoissonDiskParam pp=PoissonDiskParam()) const struct PoissonDiskParam pp=PoissonDiskParam())
@ -1320,7 +1320,7 @@ static void InitSpatialHashTable(MetroMesh &montecarloMesh, MontecarloSHT &monte
pp.pds->gridCellNum = (int)montecarloSHT.AllocatedCells.size(); pp.pds->gridCellNum = (int)montecarloSHT.AllocatedCells.size();
cellsize/=2.0f; cellsize/=2.0f;
occupancyRatio = float(montecarloMesh.vn) / float(montecarloSHT.AllocatedCells.size()); occupancyRatio = float(montecarloMesh.vn) / float(montecarloSHT.AllocatedCells.size());
qDebug(" %i / %i = %i", montecarloMesh.vn / montecarloSHT.AllocatedCells.size(),occupancyRatio); qDebug(" %i / %i = %6.3f", montecarloMesh.vn , montecarloSHT.AllocatedCells.size(),occupancyRatio);
} }
while( occupancyRatio> 100); while( occupancyRatio> 100);
} }