diff --git a/src/meshlabplugins/filter_meshing/meshfilter.cpp b/src/meshlabplugins/filter_meshing/meshfilter.cpp index 2ff4c04a9..77c058d16 100644 --- a/src/meshlabplugins/filter_meshing/meshfilter.cpp +++ b/src/meshlabplugins/filter_meshing/meshfilter.cpp @@ -968,8 +968,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction * filter, MeshDocument & md, Ric } else { - tri::Inertia I; - I.Compute(m.cm); + tri::Inertia I(m.cm); Matrix33f PCA; Point3f pcav;