From 7a2475edd54ce348b011cddd0e349b42a8a5050d Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 3 Jan 2005 11:21:26 +0000 Subject: [PATCH] Added some casts --- vcg/space/index/grid_static_ptr.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/space/index/grid_static_ptr.h b/vcg/space/index/grid_static_ptr.h index 88a1d66c..57268409 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.10 2004/09/28 10:25:05 ponchio +SetBox minimal change. + Revision 1.9 2004/09/23 14:29:42 ponchio Small bugs fixed. @@ -243,8 +246,8 @@ class GridStaticPtr void SetBBox( const Box3x & b ) { bbox = b; - float t = bbox.Diag()/100.0; - if(t == 0) t = 1e20; + ScalarType t = bbox.Diag()/100.0; + if(t == 0) t = ScalarType(1e20); // <--- Some doubts on this (Cigno 5/1/04) bbox.Offset(t); dim = bbox.max - bbox.min; }