From 5c2843b6a9ebf1c566f1dcd4ab6140ca069666d1 Mon Sep 17 00:00:00 2001 From: Luigi Malomo <malomo.luigi@gmail.com> Date: Wed, 5 Apr 2017 18:54:42 +0200 Subject: [PATCH] adapted connected components functions to polygonal meshes --- vcg/complex/algorithms/clean.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/clean.h b/vcg/complex/algorithms/clean.h index 969c2508..e8546f68 100644 --- a/vcg/complex/algorithms/clean.h +++ b/vcg/complex/algorithms/clean.h @@ -55,7 +55,7 @@ public: { FacePointer fpt=sf.top(); sf.pop(); - for(int j=0;j<3;++j) + for(int j=0; j<fpt->VN(); ++j) if( !face::IsBorder(*fpt,j) ) { FacePointer l=fpt->FFp(j); @@ -1059,7 +1059,7 @@ public: fpt=sf.top(); ++CCV.back().first; sf.pop(); - for(int j=0;j<3;++j) + for(int j=0; j<fpt->VN(); ++j) { if( !face::IsBorder(*fpt,j) ) {