Added some casts

This commit is contained in:
Paolo Cignoni 2005-01-03 11:21:26 +00:00
parent 4292517ae8
commit 7a2475edd5
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}