From da556417ccd3cf926d6971a7b2ea942d0071c96c Mon Sep 17 00:00:00 2001 From: ponchio Date: Thu, 23 Sep 2004 14:29:42 +0000 Subject: [PATCH] Small bugs fixed. --- vcg/space/index/grid_static_ptr.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vcg/space/index/grid_static_ptr.h b/vcg/space/index/grid_static_ptr.h index 03b0108c..29d9ba64 100644 --- a/vcg/space/index/grid_static_ptr.h +++ b/vcg/space/index/grid_static_ptr.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2004/09/23 13:44:25 ponchio +Removed SetSafeBBox. SetBBox is now safe enough. + Revision 1.7 2004/09/09 12:44:39 fasano included stdio.h @@ -238,9 +241,9 @@ class GridStaticPtr { bbox = b; float t = bbox.Diag()/100.0; - if(t = 0) t = 0.0000001; + if(t == 0) t = 0.0000001; bbox.Offset(t); - dim = b.max - b.min; + dim = bbox.max - bbox.min; } /// Dato un punto 3d ritorna l'indice del box corrispondente @@ -462,6 +465,7 @@ class GridStaticPtr assert(size[1]>=0.0); assert(size[2]>=0.0); + int ncell = int(elems*GFactor); // Calcolo numero di voxel if(ncell