Small changes to make the edit align working again:

- removed assert disabling
- removed wrong assert
- corrected test in the aling (thanks gianpaolo)
This commit is contained in:
Paolo Cignoni cignoni 2016-09-09 13:03:06 +00:00
parent f9fd6a9132
commit 4fa4f0eeff
3 changed files with 2 additions and 7 deletions

View File

@ -339,7 +339,7 @@ bool AlignPair::Align(
if (beyondCntVec[i] < maxBeyondCnt)
{
if (!fixbox.IsIn(movvert[i]))
if (fixbox.IsIn(movvert[i]))
{
double error = StartMinDist;
Point3d closestPoint, closestNormal;

View File

@ -37,8 +37,5 @@ INCLUDEPATH += ../../external
FORMS += alignDialog.ui
TARGET = edit_align
RESOURCES = edit_align.qrc
release {DEFINES += NDEBUG}
macx:QMAKE_CXX=g++

View File

@ -91,9 +91,7 @@ public:
for(QList<vcg::AlignPair::Result>::iterator li=resultList.begin();li!=resultList.end();++li)
if((li->MovName==id1 && li->FixName==id2) ||
(li->MovName==id2 && li->FixName==id1) ) return &*li;
assert("You are trying to find an unexistent result"==0);
return 0;
return 0;
}
void deleteResult(MeshNode *mp)