uncommented some code to find which vertex fix on poisson solving

This commit is contained in:
Nico Pietroni 2013-07-23 11:22:06 +00:00
parent fe7565ad2a
commit f22b8bef25
1 changed files with 6 additions and 6 deletions

View File

@ -130,13 +130,13 @@ class PoissonSolver
if (vt1->IsD())continue;
if (!vt0->IsB())continue;
if (!vt1->IsB())continue;
// ScalarType d_test=(vt0->P()-vt1->P()).Norm();
ScalarType Dx=fabs(vt0->P().X()-vt1->P().X());
ScalarType Dy=fabs(vt0->P().Y()-vt1->P().Y());
ScalarType Dz=fabs(vt0->P().Z()-vt1->P().Z());
ScalarType d_test=(vt0->P()-vt1->P()).Norm();
// ScalarType Dx=fabs(vt0->P().X()-vt1->P().X());
// ScalarType Dy=fabs(vt0->P().Y()-vt1->P().Y());
// ScalarType Dz=fabs(vt0->P().Z()-vt1->P().Z());
// ScalarType d_test=std::max(Dx,std::max(Dy,Dz));
ScalarType d_test=std::max(fabs(Dx-Dy),std::max(fabs(Dx-Dz),fabs(Dy-Dz)));
//ScalarType d_test=std::max(Dx,std::max(Dy,Dz));
//ScalarType d_test=std::max(fabs(Dx-Dy),std::max(fabs(Dx-Dz),fabs(Dy-Dz)));
if (d_test>dmax)
{
dmax=d_test;