added an assertion
This commit is contained in:
parent
d5113f6204
commit
4783ac9a62
|
|
@ -406,6 +406,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static void MeanAndGaussian(MeshType & m)
|
static void MeanAndGaussian(MeshType & m)
|
||||||
{
|
{
|
||||||
|
assert(HasFFAdjacency(m));
|
||||||
float area0, area1, area2, angle0, angle1, angle2, e01, e12, e20;
|
float area0, area1, area2, angle0, angle1, angle2, e01, e12, e20;
|
||||||
FaceIterator fi;
|
FaceIterator fi;
|
||||||
VertexIterator vi;
|
VertexIterator vi;
|
||||||
|
|
@ -605,7 +606,8 @@ public:
|
||||||
|
|
||||||
typename MeshType::VertexIterator vi;
|
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();
|
vcg::Matrix33<ScalarType> m33;m33.SetZero();
|
||||||
face::JumpingPos<typename MeshType::FaceType> p((*vi).VFp(),&(*vi));
|
face::JumpingPos<typename MeshType::FaceType> p((*vi).VFp(),&(*vi));
|
||||||
p.FlipE();
|
p.FlipE();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue