diff --git a/vcg/complex/algorithms/stat.h b/vcg/complex/algorithms/stat.h index 8b3c8d90..ca1f3de5 100644 --- a/vcg/complex/algorithms/stat.h +++ b/vcg/complex/algorithms/stat.h @@ -212,6 +212,21 @@ public: return area/ScalarType(2.0); } + static ScalarType ComputeBorderLength(MeshType & m) + { + RequireFFAdjacency(m); + ScalarType sum = 0; + tri::UpdateTopology::FaceFace(m); + ForEachFace(m, [&](FaceType &f) { + for (int k=0; k &h, bool selectionOnly = false) // V1.0 { tri::RequirePerVertexQuality(m);