harmless warning issued only on release (assert involving variables)
This commit is contained in:
parent
872448ecba
commit
235d03935e
|
@ -429,13 +429,11 @@ static void TestVertexEdge(MeshType &m)
|
||||||
if (!vi->IsD())
|
if (!vi->IsD())
|
||||||
{
|
{
|
||||||
int cnt =0;
|
int cnt =0;
|
||||||
int ind = tri::Index(m,*vi);
|
|
||||||
int incidentNum = numVertex[ind];
|
|
||||||
for(edge::VEIterator<EdgeType> vei(&*vi);!vei.End();++vei)
|
for(edge::VEIterator<EdgeType> vei(&*vi);!vei.End();++vei)
|
||||||
cnt++;
|
cnt++;
|
||||||
EdgeType *vep = vi->VEp();
|
EdgeType *vep = vi->VEp();
|
||||||
assert((incidentNum==0) == (vi->VEp()==0) );
|
assert((numVertex[tri::Index(m,*vi)] == 0) == (vi->VEp()==0) );
|
||||||
assert(cnt==incidentNum);
|
assert(cnt==numVertex[tri::Index(m,*vi)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue