added an assertion

This commit is contained in:
ganovelli 2008-10-24 10:26:28 +00:00
parent d5113f6204
commit 4783ac9a62
1 changed files with 4 additions and 2 deletions

View File

@ -406,6 +406,7 @@ public:
*/
static void MeanAndGaussian(MeshType & m)
{
assert(HasFFAdjacency(m));
float area0, area1, area2, angle0, angle1, angle2, e01, e12, e20;
FaceIterator fi;
VertexIterator vi;
@ -605,7 +606,8 @@ public:
typename MeshType::VertexIterator vi;
for(vi = m.vert.begin(); vi != m.vert.end(); ++vi){
for(vi = m.vert.begin(); vi != m.vert.end(); ++vi)
if(!((*vi).IsD())){
vcg::Matrix33<ScalarType> m33;m33.SetZero();
face::JumpingPos<typename MeshType::FaceType> p((*vi).VFp(),&(*vi));
p.FlipE();