Old and useless comments erased.

This commit is contained in:
Paolo Cignoni 2008-04-23 16:34:56 +00:00
parent 8972bf2ea2
commit c918066b8e
1 changed files with 2 additions and 11 deletions

View File

@ -232,21 +232,12 @@ public:
ScalarType Qa = QualityFunc(v0, v1, v2); ScalarType Qa = QualityFunc(v0, v1, v2);
ScalarType Qb = QualityFunc(v0, v3, v1); ScalarType Qb = QualityFunc(v0, v3, v1);
/*ScalarType avgbefore = (Qa + Qb) / 2.0;
ScalarType varbefore = (powf((Qa - avgbefore), 2.0) +
powf((Qb - avgbefore), 2.0)) / 2.0;*/
ScalarType QaAfter = QualityFunc(v1, v2, v3); ScalarType QaAfter = QualityFunc(v1, v2, v3);
ScalarType QbAfter = QualityFunc(v0, v3, v2); ScalarType QbAfter = QualityFunc(v0, v3, v2);
/*ScalarType avgafter = (QaAfter + QbAfter) / 2.0;
ScalarType varafter = (powf((QaAfter - avgafter), 2.0) +
powf((QbAfter - avgafter), 2.0)) / 2.0;*/
// < 0 if the average quality of faces improves after flip // < 0 if the average quality of faces improves after flip
//_priority = ((Qa + Qb) / 2.0) - ((QaAfter + QbAfter) / 2.0);
_priority = (Qa + Qb - QaAfter - QbAfter) / 2.0; _priority = (Qa + Qb - QaAfter - QbAfter) / 2.0;
//_priority = varafter - varbefore;
return _priority; return _priority;
} }