better comment in assert of finding nan in histograms

This commit is contained in:
Paolo Cignoni 2009-07-14 09:00:23 +00:00
parent abf6773153
commit 15531646b5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class Stat
for(vi = m.vert.begin(); vi != m.vert.end(); ++vi) for(vi = m.vert.begin(); vi != m.vert.end(); ++vi)
if(!(*vi).IsD()) if(!(*vi).IsD())
{ {
assert(!math::IsNAN((*vi).Q())); assert(!math::IsNAN((*vi).Q()) && "You should never try to compute Histogram with Invalid Floating points numbers (NaN)");
h.Add((*vi).Q()); h.Add((*vi).Q());
} }
// Sanity check; If some very wrong value has happened in the Q value, // Sanity check; If some very wrong value has happened in the Q value,