From 15531646b5321a02db653a6dc01ba16916d8d3f6 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 14 Jul 2009 09:00:23 +0000 Subject: [PATCH] better comment in assert of finding nan in histograms --- vcg/complex/trimesh/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/stat.h b/vcg/complex/trimesh/stat.h index 35bff192..7b85c4bb 100644 --- a/vcg/complex/trimesh/stat.h +++ b/vcg/complex/trimesh/stat.h @@ -119,7 +119,7 @@ class Stat for(vi = m.vert.begin(); vi != m.vert.end(); ++vi) 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()); } // Sanity check; If some very wrong value has happened in the Q value,