Small changes in the long long way to making meshlab and the vcglib really float/double independent
This commit is contained in:
parent
b6c540f554
commit
4c30ba4672
|
@ -1395,9 +1395,9 @@ static void InitSpatialHashTable(MeshType &montecarloMesh, MontecarloSHT &montec
|
||||||
assert(!bb.IsNull());
|
assert(!bb.IsNull());
|
||||||
bb.Offset(cellsize);
|
bb.Offset(cellsize);
|
||||||
|
|
||||||
int sizeX = std::max(1.0f,bb.DimX() / cellsize);
|
int sizeX = std::max(1,int(bb.DimX() / cellsize));
|
||||||
int sizeY = std::max(1.0f,bb.DimY() / cellsize);
|
int sizeY = std::max(1,int(bb.DimY() / cellsize));
|
||||||
int sizeZ = std::max(1.0f,bb.DimZ() / cellsize);
|
int sizeZ = std::max(1,int(bb.DimZ() / cellsize));
|
||||||
Point3i gridsize(sizeX, sizeY, sizeZ);
|
Point3i gridsize(sizeX, sizeY, sizeZ);
|
||||||
|
|
||||||
montecarloSHT.InitEmpty(bb, gridsize);
|
montecarloSHT.InitEmpty(bb, gridsize);
|
||||||
|
|
Loading…
Reference in New Issue