added a safeness assert

This commit is contained in:
Paolo Cignoni 2008-06-29 07:48:48 +00:00
parent 7da7c0128e
commit 75e3cc2a18
1 changed files with 1 additions and 0 deletions

View File

@ -849,6 +849,7 @@ private:
for(typename MESHMODELTYPE::ConstFaceIterator itf = m.face.begin();itf != m.face.end();++itf)
{
int tmp = itf->cWT(0).N();
assert(tmp>=0 && tmp<patches.size());
patches[tmp].push_back(cc);
++cc;
}