Removed and assert in the quality computation (if one side is zero for numerical rounding it should return zero as quality)

This commit is contained in:
Paolo Cignoni 2011-01-27 10:49:23 +00:00
parent b75a2c77a0
commit 7e611ef038
1 changed files with 1 additions and 1 deletions

View File

@ -284,10 +284,10 @@ P3ScalarType Quality( Point3<P3ScalarType> const &p0, Point3<P3ScalarType> const
P3ScalarType a = Norm( x );
if(a==0) return 0; // Area zero triangles have surely quality==0;
P3ScalarType b = SquaredNorm( d10 );
if(b==0) return 0; // Again: area zero triangles have surely quality==0;
P3ScalarType t = b;
t = SquaredNorm( d20 ); if ( b<t ) b = t;
t = SquaredNorm( d12 ); if ( b<t ) b = t;
assert(b!=0.0);
return a/b;
}