From 18d070f9eb8f2ef8394b692d32a02705cebe9527 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Mon, 13 Mar 2017 15:47:55 +0100 Subject: [PATCH] yet another small refactoring --- vcg/complex/algorithms/voronoi_remesher.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/vcg/complex/algorithms/voronoi_remesher.h b/vcg/complex/algorithms/voronoi_remesher.h index f586b2a9..eb15f920 100644 --- a/vcg/complex/algorithms/voronoi_remesher.h +++ b/vcg/complex/algorithms/voronoi_remesher.h @@ -84,22 +84,13 @@ protected: if (CCV.size() == 1) return ret; - - ConnectedComponentIterator ci; for(size_t i=0; i::Clear(mesh); - for(ci.start(mesh, CCV[i].second); !ci.completed(); ++ci) - { - // select all faces for a CC - (*ci)->SetS(); - } - - // create from selected - MeshPtr cc = std::make_shared(); - Append::MeshCopy(*cc, mesh, true); - ret.push_back(cc); + CCV[i].second->SetS(); + UpdateSelection::FaceConnectedFF(mesh); + ret.push_back(std::make_shared()); + Append::MeshCopy(*(ret.back()), mesh, true); } return ret;