From cd1ae0008250a12bc2baa1b865120294041a5223 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 4 Jul 2012 15:25:21 +0000 Subject: [PATCH] Added tri::UpdateFlags::FaceBorderFromFF(m); to the basic refine call. In order to move these per face flags in less places as possible... --- vcg/complex/algorithms/refine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/refine.h b/vcg/complex/algorithms/refine.h index a3772ade..f242d66f 100644 --- a/vcg/complex/algorithms/refine.h +++ b/vcg/complex/algorithms/refine.h @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -313,7 +314,8 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false, typedef typename MESH_TYPE::FacePointer FacePointer; typedef typename MESH_TYPE::FaceType FaceType; typedef typename MESH_TYPE::FaceType::TexCoordType TexCoordType; - + assert(tri::HasFFAdjacency(m)); + tri::UpdateFlags::FaceBorderFromFF(m); typedef face::Pos PosType; int j,NewVertNum=0,NewFaceNum=0;