Small changes in the long long way to making meshlab and the vcglib really float/double independent

This commit is contained in:
Paolo Cignoni 2014-06-18 10:38:15 +00:00
parent b6c540f554
commit 4c30ba4672
1 changed files with 3 additions and 3 deletions

View File

@ -1395,9 +1395,9 @@ static void InitSpatialHashTable(MeshType &montecarloMesh, MontecarloSHT &montec
assert(!bb.IsNull());
bb.Offset(cellsize);
int sizeX = std::max(1.0f,bb.DimX() / cellsize);
int sizeY = std::max(1.0f,bb.DimY() / cellsize);
int sizeZ = std::max(1.0f,bb.DimZ() / cellsize);
int sizeX = std::max(1,int(bb.DimX() / cellsize));
int sizeY = std::max(1,int(bb.DimY() / cellsize));
int sizeZ = std::max(1,int(bb.DimZ() / cellsize));
Point3i gridsize(sizeX, sizeY, sizeZ);
montecarloSHT.InitEmpty(bb, gridsize);