From 74c644ffda39b9c56444bdf4a8eee3fe9861463b Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Fri, 23 Apr 2021 16:21:40 +0200 Subject: [PATCH] fix ball pivoting filter requiring compactness --- src/meshlabplugins/filter_clean/cleanfilter.cpp | 1 + src/vcglib | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meshlabplugins/filter_clean/cleanfilter.cpp b/src/meshlabplugins/filter_clean/cleanfilter.cpp index 5ad5a2b00..98acae7e1 100644 --- a/src/meshlabplugins/filter_clean/cleanfilter.cpp +++ b/src/meshlabplugins/filter_clean/cleanfilter.cpp @@ -277,6 +277,7 @@ std::map CleanFilter::applyFilter(const QAction *filter, { case FP_BALL_PIVOTING: { + vcg::tri::Allocator::CompactEveryVector(m.cm); Scalarm Radius = par.getAbsPerc("BallRadius"); Scalarm Clustering = par.getFloat("Clustering") / 100.0f; Scalarm CreaseThr = math::ToRad(par.getFloat("CreaseThr")); diff --git a/src/vcglib b/src/vcglib index 15b1b778d..bd1a92e2f 160000 --- a/src/vcglib +++ b/src/vcglib @@ -1 +1 @@ -Subproject commit 15b1b778d4a260650f3830fdceff028420ce6543 +Subproject commit bd1a92e2f0f5a3b240e5778d816b8e0e7a9e6d1d