corrected AnisotropicDistance

This commit is contained in:
Nico Pietroni 2013-09-21 00:54:21 +00:00
parent affa165543
commit 7c08094a50
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ public:
ScalarType operator()( VertexType * v0, VertexType * v1)
{
Point3f dd = v0->cP()-v1->cP();
float x = dd * (wxH[v0]+wxH[v1])/2.0f;
float y = dd * (wyH[v0]+wyH[v1])/2.0f;
float x = (fabs(dd * wxH[v0])+fabs(dd *wxH[v1]))/2.0f;
float y = (fabs(dd * wyH[v0])+fabs(dd *wyH[v1]))/2.0f;
return sqrt(x*x+y*y);
}