Added a RequireTriangularMesh

This commit is contained in:
Paolo Cignoni 2014-02-19 14:39:30 +00:00
parent 18c0ac1681
commit 2e18e0650a
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ public:
static void ComputeFaceEdgeLengthDistribution( MeshType & m, Distribution<float> &h)
{
tri::RequireTriangularMesh(m);
h.Clear();
tri::UpdateFlags<MeshType>::FaceBorderFromNone(m);
for(FaceIterator fi = m.face.begin(); fi != m.face.end(); ++fi)