SetBox minimal change.

This commit is contained in:
Federico Ponchio 2004-09-28 10:25:05 +00:00
parent 89c3695006
commit 16d1909ad0
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.9 2004/09/23 14:29:42 ponchio
Small bugs fixed.
Revision 1.8 2004/09/23 13:44:25 ponchio Revision 1.8 2004/09/23 13:44:25 ponchio
Removed SetSafeBBox. SetBBox is now safe enough. Removed SetSafeBBox. SetBBox is now safe enough.
@ -241,7 +244,7 @@ class GridStaticPtr
{ {
bbox = b; bbox = b;
float t = bbox.Diag()/100.0; float t = bbox.Diag()/100.0;
if(t == 0) t = 0.0000001; if(t == 0) t = 1e20;
bbox.Offset(t); bbox.Offset(t);
dim = bbox.max - bbox.min; dim = bbox.max - bbox.min;
} }