diff --git a/vcg/complex/algorithms/stat.h b/vcg/complex/algorithms/stat.h index 95e2de19..bf10ea4e 100644 --- a/vcg/complex/algorithms/stat.h +++ b/vcg/complex/algorithms/stat.h @@ -228,6 +228,7 @@ public: static void ComputeFaceEdgeLengthDistribution( MeshType & m, Distribution &h) { + tri::RequireTriangularMesh(m); h.Clear(); tri::UpdateFlags::FaceBorderFromNone(m); for(FaceIterator fi = m.face.begin(); fi != m.face.end(); ++fi)